@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&display=swap');

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f3f6f5;
    color: #1c2b27;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
}

.auth-body * {
    box-sizing: border-box;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 1.08fr) minmax(380px, 0.92fr);
}

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px 36px;
    color: #fff;
    background:
        radial-gradient(900px 480px at 110% -10%, rgba(26, 179, 148, 0.45), transparent 55%),
        radial-gradient(520px 420px at -10% 110%, rgba(255, 255, 255, 0.08), transparent 60%),
        linear-gradient(165deg, #071c19 0%, #0d3b34 48%, #127a68 100%);
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand::before {
    width: 460px;
    height: 460px;
    right: -160px;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand::after {
    width: 320px;
    height: 320px;
    right: -40px;
    top: -70px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-brand-inner,
.auth-brand-foot {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

.auth-logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.auth-kicker {
    margin: 56px 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.auth-brand h2 {
    max-width: 460px;
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-lead {
    max-width: 460px;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.auth-points {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    max-width: 460px;
}

.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.auth-points svg {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-brand-foot {
    margin-top: 32px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid rgba(16, 42, 36, 0.06);
    border-radius: 22px;
    padding: 36px 36px 28px;
    box-shadow: 0 18px 50px rgba(16, 42, 36, 0.08);
}

.auth-step {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(26, 179, 148, 0.12);
    color: #0f7668;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #142421;
}

.auth-sub {
    margin: 8px 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #66736f;
}

.auth-email {
    display: block;
    margin: -14px 0 22px;
    color: #142421;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-all;
}

.auth-page .alert {
    position: relative;
    border: none;
    border-radius: 12px;
    padding: 12px 36px 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-page .alert-danger {
    background: #fdecec;
    color: #9b2332;
}

.auth-page .alert-success {
    background: #e7f6ef;
    color: #146c43;
}

.auth-page .alert .close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: 0.6;
    cursor: pointer;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #24312e;
}

.auth-control {
    position: relative;
}

.auth-control .auth-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8b9793;
    pointer-events: none;
}

.auth-page .form-control {
    width: 100%;
    height: 50px;
    padding: 0 44px;
    border: 1px solid #d7dfdc;
    border-radius: 12px;
    background: #fbfcfb;
    color: #142421;
    font-family: inherit;
    font-size: 14px;
    line-height: 50px;
    vertical-align: middle;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-page .form-control::placeholder {
    color: #98a29e;
    font-size: 14px;
    font-weight: 400;
}

.auth-page .form-control:focus {
    background: #fff;
    border-color: #1ab394;
    box-shadow: 0 0 0 4px rgba(26, 179, 148, 0.16);
}

.auth-page .form-control.input-validation-error {
    border-color: #e06a6a;
    background: #fffafa;
}

.auth-reveal {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6d7a76;
    cursor: pointer;
}

.auth-reveal:hover,
.auth-reveal:focus {
    color: #0f7668;
    background: rgba(26, 179, 148, 0.1);
    outline: none;
}

.auth-reveal .eye-off {
    display: none;
}

.auth-reveal.is-visible .eye-on {
    display: none;
}

.auth-reveal.is-visible .eye-off {
    display: block;
}

.auth-page .field-validation-error,
.auth-page #otpError {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 12px;
    line-height: 1.4;
}

.auth-page .field-validation-valid {
    display: none;
}

.otp-input-group {
    display: flex;
    gap: 8px;
}

.otp-box {
    flex: 1 1 0;
    min-width: 0;
    height: 58px;
    padding: 0;
    text-align: center;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: #142421;
    background: #fbfcfb;
    border: 1px solid #d7dfdc;
    border-radius: 12px;
    outline: none;
    caret-color: #1ab394;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.otp-box:focus {
    background: #fff;
    border-color: #1ab394;
    box-shadow: 0 0 0 4px rgba(26, 179, 148, 0.16);
}

.otp-box.is-invalid {
    border-color: #e06a6a;
    background: #fffafa;
}

.auth-submit.ladda-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: #1ab394;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit.ladda-button:hover,
.auth-submit.ladda-button:focus {
    background: #14967c;
    color: #fff;
    outline: none;
}

.auth-page .auth-submit.ladda-button[data-style=contract],
.auth-page .auth-submit.ladda-button[data-style=contract][data-loading] {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.auth-page .auth-submit.ladda-button[data-loading] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-page .auth-submit.ladda-button[data-loading] .ladda-label {
    opacity: 1;
    position: static;
}

.auth-page .auth-submit.ladda-button .ladda-spinner,
.auth-page .auth-submit.ladda-button[data-style=contract] .ladda-spinner,
.auth-page .auth-submit.ladda-button[data-loading] .ladda-spinner {
    position: relative;
    left: auto;
    top: auto;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
    flex: 0 0 auto;
}

.auth-page .auth-submit.ladda-button[data-loading] .ladda-spinner {
    width: 32px;
    height: 32px;
    opacity: 1;
    order: -1;
}

.auth-back {
    display: inline-block;
    margin-top: 18px;
    color: #0f7668;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-back:hover {
    color: #0b5c51;
    text-decoration: underline;
}

.auth-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    color: #8b9793;
}

@media (max-width: 980px) {
    .auth-shell {
        display: flex;
        flex-direction: column;
    }

    .auth-brand {
        padding: 20px 20px 18px;
    }

    .auth-kicker,
    .auth-lead,
    .auth-points,
    .auth-brand-foot {
        display: none;
    }

    .auth-brand h2 {
        display: none;
    }

    .auth-logo {
        padding: 8px 12px;
    }

    .auth-logo img {
        height: 34px;
    }

    .auth-panel {
        align-items: flex-start;
        padding: 20px 16px 32px;
    }

    .auth-card {
        padding: 28px 20px 22px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .otp-box {
        height: 48px;
        font-size: 18px;
        border-radius: 10px;
    }

    .otp-input-group {
        gap: 6px;
    }
}
