:root {
    --auth-navy: #081528;
    --auth-navy-soft: #0d2230;
    --auth-panel: #f3f7fb;
    --auth-text: #0f1f35;
    --auth-muted: #60728d;
    --auth-teal: #149b8f;
    --auth-teal-hover: #11877d;
    --auth-aqua: #5de3d2;
    --auth-border: #d9e2ec;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.auth-body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--auth-text);
    background: var(--auth-panel);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.auth-brand-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    background:
     linear-gradient(
    132deg,
    rgba(70, 8, 22, .95) 0%,
    rgba(45, 5, 15, .98) 50%,
    #1f030b 100%
);}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 18%, rgba(21, 180, 166, .12), transparent 34%),
        radial-gradient(circle at 74% 72%, rgba(32, 143, 136, .06), transparent 40%);
}

.auth-brand-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .35;
    pointer-events: none;
}

.auth-brand-glow-one {
    width: 530px;
    height: 530px;
    left: -300px;
    top: -260px;
    background: rgba(20, 184, 166, .10);
}

.auth-brand-glow-two {
    width: 560px;
    height: 560px;
    right: -390px;
    bottom: -270px;
    background: rgba(45, 212, 191, .05);
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 46px 64px 42px;
    display: flex;
    flex-direction: column;
}

.auth-logo,
.auth-mobile-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.auth-logo {
    width: max-content;
    color: #fff;
}

.auth-logo-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(145deg, #32d4c5 0%, #13a99d 100%);
    box-shadow: 0 8px 20px rgba(13, 148, 136, .18);
}

.auth-logo-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-logo-copy strong {
    color: inherit;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.01em;
}

.auth-logo-copy small {
    margin-top: 3px;
    color: #6182a1;
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: .15em;
    font-weight: 500;
}

.auth-brand-message {
    width: 100%;
    max-width: 520px;
    margin-top: auto;
    margin-bottom: auto;
    transform: translateY(13px);
}

.auth-brand-message h1 {
    margin: 0;
    max-width: 470px;
    color: #fff;
    font-size: clamp(34px, 2.3vw, 43px);
    line-height: 1.16;
    font-weight: 780;
    letter-spacing: -.025em;
}

.auth-brand-message > p {
    margin: 27px 0 0;
    max-width: 500px;
    color: #d1deea;
    font-size: 15.5px;
    line-height: 1.58;
    font-weight: 400;
}

.auth-feature-grid {
    margin-top: 36px;
    max-width: 448px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.auth-feature-card {
    height: 84px;
    padding: 16px 16px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
}

.auth-feature-card strong {
    color: var(--auth-aqua);
    font-size: 21px;
    line-height: 1.05;
    font-weight: 730;
    letter-spacing: -.02em;
}

.auth-feature-card span {
    margin-top: 8px;
    color: #62748e;
    font-size: 11.5px;
    line-height: 1;
}

.auth-copyright {
    margin: 0;
    color: #415a7c;
    font-size: 11.5px;
    line-height: 1.2;
}

.auth-form-panel {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 72px;
    background: #f2f7fb;
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
    transform: translateY(-4px);
}

.auth-form-card-wide {
    max-width: 540px;
}

.auth-form-header {
    margin-bottom: 31px;
}

.auth-form-header h2 {
    margin: 0;
    color: #102039;
    font-size: 30px;
    line-height: 1.14;
    font-weight: 760;
    letter-spacing: -.025em;
}

.auth-form-header p {
    margin: 8px 0 0;
    color: #64748d;
    font-size: 15px;
    line-height: 1.45;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field label {
    color: #122039;
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 500;
}

.auth-field label span {
    color: #8391a5;
    font-weight: 400;
}

.auth-field input {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    outline: none;
    border-radius: 7px;
    border: 1px solid var(--auth-border);
    color: #17243a;
    background: #fff;
    font: inherit;
    font-size: 13.5px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .015);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-field input::placeholder {
    color: #9aa9c1;
    opacity: 1;
}

.auth-field input:focus {
    border-color: #48bdb3;
    box-shadow: 0 0 0 3px rgba(20, 155, 143, .10);
}

.auth-field small {
    color: #8492a6;
    font-size: 11.5px;
    line-height: 1.4;
}

.auth-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-form-options {
    margin-top: -1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #566984;
    font-size: 13px;
    line-height: 1.3;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--auth-teal);
}

.auth-form-options a,
.auth-switch a {
    color: #008f83;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-options a:hover,
.auth-switch a:hover {
    color: #08786f;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--auth-teal);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 118, 110, .08);
    transition: background .16s ease, transform .08s ease, box-shadow .16s ease;
}

.auth-submit:hover {
    background: var(--auth-teal-hover);
    box-shadow: 0 4px 12px rgba(20, 155, 143, .13);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-switch {
    margin: 23px 0 0;
    text-align: center;
    color: #667791;
    font-size: 12.7px;
    line-height: 1.5;
}

.auth-alert {
    padding: 11px 13px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 12.5px;
    line-height: 1.45;
}

.auth-alert-error {
    color: #b42318;
    border-color: #fecaca;
    background: #fff1f2;
}

.auth-alert-success {
    color: #047857;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.auth-success-state {
    text-align: center;
}

.auth-success-state > p {
    margin: 18px 0 22px;
    color: #667791;
    font-size: 14px;
    line-height: 1.6;
}

.auth-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 8px rgba(236, 253, 245, .6);
}

.auth-success-icon svg {
    width: 30px;
    height: 30px;
}

.auth-link-button {
    margin-top: 0;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 34px;
    color: #102039;
}

@media (max-width: 1180px) {
    .auth-brand-content {
        padding-left: 48px;
        padding-right: 48px;
    }

    .auth-form-panel {
        padding-left: 48px;
        padding-right: 48px;
    }

    .auth-brand-message h1 {
        font-size: 37px;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 38px 24px;
    }

    .auth-form-card {
        max-width: 460px;
        transform: none;
    }

    .auth-mobile-logo {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .auth-form-panel {
        align-items: flex-start;
        padding: 28px 20px 36px;
    }

    .auth-mobile-logo {
        margin-bottom: 44px;
    }

    .auth-logo-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 18px;
    }

    .auth-logo-copy strong {
        font-size: 17px;
    }

    .auth-form-header h2 {
        font-size: 28px;
    }

    .auth-two-columns {
        grid-template-columns: 1fr;
    }

    .auth-form-options {
        font-size: 12.5px;
    }
}

/* Mobile auth hardening */
@media(max-width:767px){
  html,body{min-width:0;overflow-x:hidden}
  .auth-shell,.auth-page,.auth-container{max-width:100%!important}
  input,select,textarea,button{max-width:100%}
}

.auth-logo-image {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    background: #fff;
    flex: 0 0 36px;
}

@media (max-width: 768px) {
    .auth-logo-image {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}
