:root {
    font-family: "DM Sans", sans-serif;
    color: #172b49;
    background: #f3f6fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 85% 4%, rgba(123, 164, 219, 0.18), transparent 34rem),
        #f3f6fb;
}

button,
input {
    font: inherit;
}

.admin-shell {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 24px;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    color: #1f4386;
    font-family: "Manrope", sans-serif;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.admin-brand small {
    display: block;
    margin-top: 3px;
    color: #77869b;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
}

.brand-mark,
.section-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 43px;
    height: 43px;
    color: white;
    background: #1f4386;
    border-radius: 13px;
    font-family: "Manrope", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.admin-panel {
    padding: 32px;
    background: white;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(20, 47, 98, 0.07);
}

.auth-panel {
    width: min(480px, 100%);
    margin: 30px auto 80px;
    padding: 38px;
}

.panel-eyebrow {
    color: #4b7fc2;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.035em;
}

h1 {
    margin: 10px 0;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    line-height: 1.2;
}

.auth-panel > p,
.dashboard-header p,
.section-title p {
    color: #66768c;
    line-height: 1.65;
}

.auth-panel > p {
    margin-bottom: 26px;
}

form label {
    display: block;
    margin: 17px 0 8px;
    color: #2a3e5b;
    font-size: 0.88rem;
    font-weight: 700;
}

form label span {
    display: block;
    margin-top: 4px;
    color: #8492a5;
    font-size: 0.76rem;
    font-weight: 500;
}

form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="file"] {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    color: #172b49;
    background: #fbfcfe;
    border: 1px solid #dce4ef;
    border-radius: 9px;
}

form input:focus {
    outline: 3px solid rgba(75, 127, 194, 0.2);
    border-color: #4b7fc2;
}

.button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    width: 100%;
    margin-top: 23px;
    color: white;
    background: #1f4386;
}

.button-primary:hover {
    background: #17366f;
}

.notice {
    margin: 0 0 22px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.9rem;
}

.notice-success {
    color: #176145;
    background: #edf9f2;
    border-color: #c9ead8;
}

.notice-error {
    color: #9a352d;
    background: #fff3f1;
    border-color: #f2d2ce;
}

.dashboard-header,
.media-heading,
.admin-media-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    margin-bottom: 6px;
}

.dashboard-header p {
    margin: 0;
}

.button-quiet {
    color: #28466f;
    background: white;
    border: 1px solid #dce4ef;
}

.button-quiet:hover {
    background: #f6f8fc;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: #eaf1fa;
    color: #1f4386;
    font-size: 1.6rem;
}

.section-title h2,
.media-heading h2 {
    margin: 0 0 5px;
    font-size: 1.25rem;
}

.section-title p {
    margin: 0;
    font-size: 0.9rem;
}

.upload-form {
    margin-top: 25px;
}

.form-hint {
    margin: 9px 0 0;
    color: #8492a5;
    font-size: 0.8rem;
}

.upload-form .button-primary {
    width: auto;
    min-width: 190px;
}

.media-section {
    margin-top: 44px;
}

.media-heading {
    margin-bottom: 17px;
}

.media-heading h2 {
    margin-top: 5px;
    font-size: 1.55rem;
}

.media-count {
    padding: 7px 12px;
    color: #1f4386;
    background: #eaf1fa;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}

.empty-state {
    padding: 35px 20px;
    color: #728198;
    background: white;
    border: 1px dashed #cbd6e5;
    border-radius: 14px;
    text-align: center;
}

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-media-card {
    min-width: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
}

.admin-media-preview {
    aspect-ratio: 4 / 3;
    background: #142f62;
}

.admin-media-preview img,
.admin-media-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-media-details {
    align-items: flex-start;
    padding: 13px;
}

.admin-media-details h3 {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.45;
}

.button-delete {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    color: #9a352d;
    background: #fff3f1;
    font-size: 0.77rem;
}

.button-delete:hover {
    background: #ffe4e0;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    color: #8492a5;
    font-size: 0.8rem;
}

.admin-footer a {
    color: #1f4386;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .admin-shell {
        width: min(100% - 28px, 560px);
        padding-top: 23px;
    }

    .auth-panel,
    .admin-panel {
        padding: 24px 20px;
    }

    .dashboard-header {
        align-items: flex-start;
    }

    .dashboard-header .button {
        padding: 0 12px;
    }

    .admin-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .admin-media-details {
        flex-direction: column;
        gap: 10px;
    }

    .admin-footer {
        gap: 15px;
        font-size: 0.75rem;
    }
}

@media (max-width: 420px) {
    .admin-media-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
    }
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 258px;
    flex-direction: column;
    min-height: 100vh;
    padding: 28px 18px 18px;
    background: #fff;
    border-right: 1px solid #e5ebf3;
}

.dashboard-sidebar .admin-brand {
    margin: 0 0 43px 5px;
}

.sidebar-label {
    padding: 0 12px;
    color: #9aa7b8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.sidebar-nav a,
.sidebar-public-link,
.sidebar-signout {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    color: #64748b;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 0.87rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-nav a i,
.sidebar-public-link i,
.sidebar-signout i {
    width: 18px;
    color: #8392a7;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-public-link:hover,
.sidebar-signout:hover {
    color: #1f4386;
    background: #f3f6fb;
}

.sidebar-nav a.is-active {
    color: #1f4386;
    background: #eaf1fa;
    font-weight: 700;
}

.sidebar-nav a.is-active i {
    color: #1f4386;
}

.sidebar-bottom {
    display: grid;
    gap: 6px;
    margin-top: auto;
}

.sidebar-public-link,
.sidebar-signout {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.sidebar-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    margin-top: 15px;
    padding: 16px 5px 0;
    border-top: 1px solid #edf0f5;
}

.user-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 39px;
    height: 39px;
    color: white;
    background: linear-gradient(140deg, #4b7fc2, #1f4386);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
}

.sidebar-user-copy,
.welcome-user > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.sidebar-user-copy strong,
.welcome-user strong {
    color: #2a3e5b;
    font-size: 0.8rem;
}

.sidebar-user-copy small,
.welcome-user small {
    overflow: hidden;
    color: #8290a3;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-main {
    width: min(100% - 258px, 1440px);
    min-width: 0;
    margin: 0 auto;
    padding: 34px clamp(22px, 4vw, 56px) 25px;
}

.welcome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.welcome-bar h1 {
    margin: 6px 0 5px;
    color: #172b49;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.welcome-bar p {
    margin: 0;
    color: #74839a;
    font-size: 0.91rem;
}

.welcome-user {
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 13px;
}

.dashboard-welcome-card {
    position: relative;
    display: flex;
    min-height: 230px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 33px clamp(24px, 4vw, 44px);
    color: white;
    background: linear-gradient(112deg, #142f62 0%, #1f4386 63%, #4b7fc2 100%);
    border-radius: 19px;
    box-shadow: 0 16px 35px rgba(20, 47, 98, 0.15);
}

.dashboard-welcome-card > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.welcome-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 7px 11px;
    color: #e2efff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 30px;
    font-size: 0.73rem;
    font-weight: 700;
}

.welcome-chip i {
    color: #9ed5bd;
}

.dashboard-welcome-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.dashboard-welcome-card p {
    max-width: 520px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.65;
}

.button-white {
    gap: 9px;
    color: #1f4386;
    background: white;
}

.button-white:hover {
    background: #eaf1fa;
}

.welcome-art {
    position: absolute;
    top: 50%;
    right: 7%;
    display: grid;
    place-items: center;
    width: 200px;
    height: 200px;
    color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    transform: translateY(-50%);
}

.welcome-art::before,
.welcome-art::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.welcome-art::before {
    inset: 18px;
}

.welcome-art::after {
    inset: 38px;
}

.welcome-art i {
    font-size: 4.4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    display: flex;
    min-height: 98px;
    align-items: center;
    gap: 15px;
    padding: 17px 19px;
    background: white;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(20, 47, 98, 0.035);
}

.stat-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    font-size: 1.08rem;
}

.stat-blue {
    color: #1f4386;
    background: #eaf1fa;
}

.stat-cyan {
    color: #1985a5;
    background: #e6f7fb;
}

.stat-violet {
    color: #7354aa;
    background: #f0ebfb;
}

.stat-card div {
    display: grid;
    gap: 5px;
}

.stat-card div span {
    color: #77869b;
    font-size: 0.8rem;
}

.stat-card strong {
    color: #172b49;
    font-family: "Manrope", sans-serif;
    font-size: 1.45rem;
    line-height: 1;
}

.dashboard-main .notice {
    margin-bottom: 20px;
}

.dashboard-main .admin-panel {
    margin-bottom: 28px;
}

.dashboard-main .section-icon {
    font-size: 1.15rem;
}

.dashboard-main .media-section {
    margin-top: 30px;
}

.dashboard-main .admin-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-page {
    display: grid;
    gap: 24px;
}

.media-page-heading {
    align-items: flex-end;
    margin-bottom: 0;
}

.media-page-heading h2 {
    margin: 6px 0 0;
    font-size: 1.45rem;
}

.media-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.media-page-actions .button-primary {
    width: auto;
    min-height: 40px;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.upload-dialog {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100% - 32px));
    max-width: 560px;
    max-height: min(90vh, 760px);
    overflow-y: auto;
    margin: auto;
    padding: 28px;
    color: #172b49;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(11, 28, 57, 0.28);
}

.upload-dialog::backdrop {
    background: rgba(15, 31, 56, 0.58);
    backdrop-filter: blur(3px);
}

.upload-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.upload-dialog-heading .section-title {
    align-items: flex-start;
}

.upload-dialog-heading .section-title h2 {
    margin: 2px 0 5px;
    font-size: 1.2rem;
}

.upload-dialog-heading .section-title p {
    margin: 0;
    color: #74839a;
    font-size: 0.86rem;
    line-height: 1.5;
}

.dialog-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #65758c;
    background: #f3f6fb;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.dialog-close:hover {
    color: #1f4386;
    background: #eaf1fa;
}

.upload-dialog .upload-form {
    margin-top: 20px;
}

.media-card-content {
    padding: 15px;
}

.media-edit-form label {
    margin-top: 12px;
    font-size: 0.81rem;
}

.media-edit-form label:first-of-type {
    margin-top: 0;
}

.media-edit-form input[type="text"],
.media-edit-form input[type="file"] {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 0.82rem;
}

.media-edit-form input[type="file"] {
    padding: 8px;
    font-size: 0.74rem;
}

.media-edit-form .button-primary {
    width: 100%;
    min-height: 39px;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.8rem;
}

.media-delete-form {
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #edf0f5;
}

.media-delete-form .button-delete {
    width: 100%;
    min-height: 38px;
    gap: 7px;
}

.dashboard-main .admin-footer {
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid #e3e9f1;
}

.admin-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 45px 20px;
}

.empty-state i {
    margin-bottom: 6px;
    color: #8da3c1;
    font-size: 1.8rem;
}

.empty-state strong {
    color: #364d6d;
    font-size: 0.95rem;
}

.empty-state span {
    color: #8391a4;
    font-size: 0.84rem;
}

.settings-panel {
    max-width: 800px;
}

.settings-form {
    max-width: 640px;
    margin-top: 24px;
}

.form-divider {
    margin: 26px 0 9px;
    padding-top: 20px;
    border-top: 1px solid #e9edf3;
}

.form-divider > span {
    color: #2a3e5b;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-divider small {
    display: block;
    margin-top: 5px;
    color: #8290a3;
    font-size: 0.78rem;
    font-weight: 400;
}

.password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-form .button-primary {
    width: auto;
    min-width: 210px;
}

@media (max-width: 1000px) {
    .dashboard-main .admin-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-art {
        right: 4%;
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 760px) {
    .dashboard-layout {
        display: block;
    }

    .dashboard-sidebar {
        position: static;
        min-height: auto;
        padding: 15px 20px 12px;
        border-right: 0;
        border-bottom: 1px solid #e5ebf3;
    }

    .dashboard-sidebar .admin-brand {
        margin: 0 0 14px;
    }

    .sidebar-label,
    .sidebar-user {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        margin-top: 0;
    }

    .sidebar-nav a {
        justify-content: center;
        gap: 7px;
        padding: 0 8px;
        font-size: 0.76rem;
    }

    .sidebar-bottom {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
        margin-top: 8px;
    }

    .sidebar-public-link,
    .sidebar-signout {
        width: auto;
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .dashboard-main {
        width: 100%;
        padding: 25px 20px;
    }

    .welcome-bar {
        align-items: flex-start;
    }

    .welcome-user {
        max-width: 190px;
    }

    .welcome-user .user-avatar {
        width: 34px;
        height: 34px;
    }

    .welcome-user small {
        max-width: 115px;
    }
}

@media (max-width: 560px) {
    .dashboard-main {
        padding: 22px 14px;
    }

    .welcome-user {
        display: none;
    }

    .dashboard-welcome-card {
        min-height: 220px;
        padding: 25px 21px;
    }

    .welcome-art {
        right: -43px;
        width: 145px;
        height: 145px;
    }

    .welcome-art i {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        min-height: 75px;
        padding: 12px 15px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .sidebar-nav a {
        flex-direction: column;
        min-height: 58px;
        gap: 4px;
        font-size: 0.67rem;
    }

    .sidebar-nav a i {
        font-size: 0.9rem;
    }

    .sidebar-bottom {
        justify-content: space-between;
    }

    .dashboard-main .admin-media-grid {
        grid-template-columns: 1fr;
    }

    .media-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-page-actions {
        width: 100%;
        justify-content: space-between;
    }

    .password-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard-main .admin-panel {
        padding: 21px 17px;
    }

    .settings-form .button-primary {
        width: 100%;
    }
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    background: #f7f9fc;
}

.auth-side {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: 46px clamp(34px, 5vw, 78px) 28px;
    color: white;
    background:
        radial-gradient(circle at 85% 72%, rgba(119, 164, 222, 0.32), transparent 22rem),
        linear-gradient(145deg, #102d60 0%, #1f4386 55%, #2f65a8 100%);
    isolation: isolate;
}

.auth-side::before,
.auth-side::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.auth-side::before {
    right: -210px;
    bottom: 8%;
    width: 520px;
    height: 520px;
}

.auth-side::after {
    right: -160px;
    bottom: calc(8% + 50px);
    width: 420px;
    height: 420px;
}

.auth-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 13px;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none;
}

.auth-brand img {
    width: 49px;
    height: 49px;
    padding: 5px;
    object-fit: contain;
    background: white;
    border-radius: 14px;
}

.auth-brand small {
    display: block;
    margin-top: 4px;
    color: #c1d5f0;
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
}

.auth-side-copy {
    max-width: 500px;
    margin: auto 0;
    padding: 65px 0;
}

.auth-side-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #c6dcf8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.auth-side-kicker i {
    color: #9dc5f2;
}

.auth-side-copy h1 {
    margin: 0 0 22px;
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.auth-side-copy h1 em {
    color: #a9cdf5;
    font-style: normal;
}

.auth-side-copy p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.98rem;
    line-height: 1.8;
}

.auth-side-art {
    position: absolute;
    right: 4%;
    bottom: 14%;
    display: grid;
    width: 175px;
    height: 175px;
    place-items: center;
    color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.auth-side-art::before,
.auth-side-art::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.auth-side-art::before {
    inset: 14px;
}

.auth-side-art::after {
    inset: 30px;
}

.auth-side-art i {
    font-size: 3.8rem;
}

.auth-side-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 0;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.auth-side-footer span {
    color: rgba(255, 255, 255, 0.52);
}

.auth-main {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 32px clamp(28px, 6vw, 90px) 22px;
    background:
        radial-gradient(ellipse at 70% 8%, rgba(123, 164, 219, 0.12), transparent 24rem),
        #f7f9fc;
}

.auth-content {
    width: min(440px, 100%);
    margin: auto;
}

.auth-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    color: #8593a6;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-topline a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #52657f;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
}

.auth-topline a:hover,
.auth-main-footer a:hover {
    color: #1f4386;
}

.auth-main .notice {
    margin-bottom: 18px;
}

.auth-layout .auth-panel {
    width: 100%;
    margin: 0;
    padding: 39px;
    background: white;
    border: 1px solid #e8edf4;
    border-radius: 22px;
    box-shadow: 0 22px 65px rgba(20, 47, 98, 0.09);
}

.auth-card-icon {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    margin-bottom: 22px;
    color: #1f4386;
    background: #eaf1fa;
    border-radius: 15px;
    font-size: 1.1rem;
}

.auth-layout .auth-panel .panel-eyebrow {
    color: #4b7fc2;
}

.auth-layout .auth-panel h2 {
    margin: 9px 0 9px;
    color: #172b49;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.55rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.auth-layout .auth-panel > p {
    margin: 0 0 26px;
    color: #718198;
    font-size: 0.9rem;
    line-height: 1.7;
}

.auth-layout .auth-panel form label {
    margin: 17px 0 8px;
    color: #2a3e5b;
    font-size: 0.82rem;
}

.auth-layout .auth-panel form input[type="email"],
.auth-layout .auth-panel form input[type="password"] {
    min-height: 51px;
    padding: 12px 14px;
    background: #fbfcfe;
    border: 1px solid #dfe6f0;
    border-radius: 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-layout .auth-panel form input:focus {
    outline: none;
    border-color: #4b7fc2;
    box-shadow: 0 0 0 4px rgba(75, 127, 194, 0.13);
}

.auth-layout .auth-panel .button-primary {
    min-height: 51px;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 0 17px;
    background: linear-gradient(110deg, #1f4386, #315fa2);
    border-radius: 11px;
    box-shadow: 0 9px 20px rgba(31, 67, 134, 0.16);
}

.auth-layout .auth-panel .button-primary i {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.auth-layout .auth-panel .button-primary:hover i {
    transform: translateX(3px);
}

.auth-card-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 21px;
    padding: 12px 13px;
    color: #718198;
    background: #f5f8fc;
    border-radius: 10px;
    font-size: 0.74rem;
    line-height: 1.55;
}

.auth-card-note i {
    margin-top: 2px;
    color: #4b7fc2;
}

.auth-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 19px 0 0;
    color: #8593a6;
    font-size: 0.73rem;
}

.auth-secure-note i {
    color: #4b7fc2;
}

.auth-main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: min(440px, 100%);
    margin: 25px auto 0;
    padding-top: 17px;
    color: #98a4b4;
    border-top: 1px solid #e5eaf1;
    font-size: 0.7rem;
}

.auth-main-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #61728a;
    text-decoration: none;
    transition: color 0.2s ease;
}

@media (max-width: 900px) {
    .auth-layout {
        display: block;
    }

    .auth-side {
        min-height: auto;
        padding: 19px 25px;
    }

    .auth-side-copy,
    .auth-side-art,
    .auth-side-footer {
        display: none;
    }

    .auth-main {
        min-height: calc(100vh - 88px);
        padding: 32px 24px 22px;
    }
}

@media (max-width: 520px) {
    .auth-side {
        padding: 15px 19px;
    }

    .auth-main {
        padding: 25px 16px 18px;
    }

    .auth-layout .auth-panel {
        padding: 28px 23px;
        border-radius: 18px;
    }

    .auth-topline {
        margin-bottom: 19px;
    }

    .auth-main-footer {
        font-size: 0.66rem;
    }
}
