@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --auth-navy: #062443;
    --auth-navy-deep: #041c35;
    --auth-teal: #0b9788;
    --auth-teal-dark: #08776c;
    --auth-gold: #e6a51b;
    --auth-text: #071b36;
    --auth-muted: #66758b;
    --auth-border: #cfd9e2;
    --auth-bg: #f6f8fa;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 46%) 1fr;
    padding: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.auth-brand {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: clamp(36px, 5vw, 72px);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--auth-navy);
    color: #fff;
}

.auth-brand-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.auth-brand-mark,
.auth-mobile-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-gold);
    border-radius: 13px 13px 7px 7px;
    color: var(--auth-gold);
}

.auth-brand-mark svg,
.auth-mobile-mark svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-brand-message {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.auth-brand-message h1 {
    max-width: 430px;
    margin: 0 0 clamp(40px, 7vh, 74px);
    color: #fff;
    font-size: clamp(30px, 3.3vw, 50px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.auth-brand-message h1::after {
    content: '';
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 24px;
    background: var(--auth-gold);
}

.auth-brand-message ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 22px;
    list-style: none;
}

.auth-brand-message li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d5e2ec;
    font-size: 14px;
}

.auth-brand-message li > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #35c8b7;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-architecture {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: min(34vw, 470px);
    height: min(48vw, 600px);
    border: 1px solid rgba(116, 162, 194, 0.17);
    border-radius: 50% 50% 0 0;
    transform: rotate(-5deg);
}

.auth-architecture::before,
.auth-architecture::after,
.auth-architecture span {
    content: '';
    position: absolute;
    border: 1px solid rgba(116, 162, 194, 0.13);
    border-radius: 50% 50% 0 0;
}

.auth-architecture::before { inset: 70px 58px 0; }
.auth-architecture::after { inset: 150px 116px 0; }
.auth-architecture span:nth-child(1) { inset: auto auto 70px -80px; width: 220px; height: 280px; }
.auth-architecture span:nth-child(2) { inset: auto -70px 45px auto; width: 190px; height: 250px; }
.auth-architecture span:nth-child(3) { inset: 36% 34% auto; width: 100px; height: 100px; border-radius: 50%; }

.auth-main {
    display: flex;
    min-height: 100vh;
    padding: 56px clamp(36px, 8vw, 120px);
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-page .login-container,
.auth-page .reset-container {
    width: 100%;
    max-width: 470px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-page .logo {
    margin-bottom: 34px;
    text-align: left;
}

.auth-page .logo > i {
    display: none;
}

.auth-page .logo h1 {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.auth-page .logo p {
    color: var(--auth-muted);
    font-size: 15px;
}

.auth-mobile-mark {
    display: none;
}

.auth-page .form-group {
    margin-bottom: 20px;
}

.auth-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #263b54;
    font-size: 13px;
    font-weight: 650;
}

.auth-page .form-group input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    background: #fff;
    color: var(--auth-text);
    font-size: 14px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-page .form-group input:focus {
    outline: none;
    border-color: var(--auth-teal);
    box-shadow: 0 0 0 3px rgba(11, 151, 136, 0.13);
}

.auth-page .form-group input::placeholder {
    color: #97a3b1;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px !important;
}

.password-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #758397;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f1f5f7;
    color: var(--auth-teal);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-slash {
    display: none;
}

.password-toggle.is-visible .eye-slash {
    display: block;
}

.auth-page .btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--auth-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.auth-page .btn:hover {
    background: var(--auth-navy-deep);
    box-shadow: 0 9px 20px rgba(6, 36, 67, 0.18);
    transform: translateY(-1px);
}

.auth-page .login-actions {
    justify-content: flex-end;
    margin: -6px 0 22px;
}

.auth-page .link-button,
.auth-help a {
    color: var(--auth-teal-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-page .link-button:hover,
.auth-help a:hover {
    text-decoration: underline;
}

.auth-page .forgot-panel {
    margin-top: 26px;
    padding-top: 24px;
    border-top-color: #e4e9ee;
}

.auth-page .forgot-panel h2 {
    color: var(--auth-text);
    font-size: 20px;
}

.auth-help {
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px solid #e4e9ee;
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

.auth-page .alert-error,
.auth-page .alert-success {
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-page .alert-error { background: #fff1f1; border-color: #efc2c2; color: #a93131; }
.auth-page .alert-success { background: #ecf8f4; border-color: #bde5d9; color: #096a58; }

.auth-page-reset {
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    background: var(--auth-navy);
}

.auth-page-reset::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 75% 15%, rgba(37, 196, 177, 0.13), transparent 35%);
}

.auth-page-reset .reset-container {
    position: relative;
    max-width: 470px;
    padding: 38px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 8, 20, 0.28);
}

.auth-page-reset .logo {
    text-align: left;
}

.auth-page-reset .logo > i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e5f5f2;
    color: var(--auth-teal);
    font-size: 18px;
}

@media (max-width: 900px) {
    .auth-page {
        display: block;
        background: #fff;
    }

    .auth-brand {
        min-height: auto;
        padding: 18px 24px;
    }

    .auth-brand-message,
    .auth-architecture {
        display: none;
    }

    .auth-brand-top {
        font-size: 17px;
    }

    .auth-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px 10px 6px 6px;
    }

    .auth-main {
        min-height: calc(100vh - 70px);
        padding: 44px 24px;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .auth-brand {
        padding: 15px 18px;
    }

    .auth-main {
        padding: 38px 20px;
    }

    .auth-page .logo h1 {
        font-size: 29px;
    }

    .auth-page-reset {
        padding: 12px;
    }

    .auth-page-reset .reset-container {
        padding: 26px 20px;
    }
}
