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

:root {
    --green: #006b50;
    --green-dark: #16352c;
    --green-deep: #073d30;
    --gold: #ffc928;
    --ink: #18352d;
    --muted: #77877e;
    --line: #e4ece6;
    --soft: #f6faf7;
    --white: #fff;
    --danger: #c93434;
    --shadow: 0 22px 70px rgba(13, 63, 45, .12)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background: #f7faf7;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(350px, .9fr) 1.1fr
}

.auth-aside {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #073d30 0%, #006b50 60%, #0a7654 100%);
    color: #fff;
    padding: 38px clamp(28px, 5vw, 74px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh
}

.auth-aside:before,
.auth-aside:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none
}

.auth-aside:before {
    width: 510px;
    height: 510px;
    right: -240px;
    top: 12%
}

.auth-aside:after {
    width: 370px;
    height: 370px;
    right: -170px;
    top: 22%
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: 180px;
    padding: 9px 12px;
    background: #fff;
    border-radius: 12px
}

.auth-brand img {
    display: block;
    width: 100%;
    height: auto
}

.aside-content {
    position: relative;
    z-index: 1;
    max-width: 490px;
    margin: 60px 0
}

.aside-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffe58a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase
}

.aside-kicker i {
    font-size: 15px
}

.aside-content h1 {
    font-size: clamp(36px, 4vw, 57px);
    line-height: 1.06;
    letter-spacing: -.06em;
    margin: 20px 0 18px;
    font-weight: 800
}

.aside-content h1 span {
    color: var(--gold)
}

.aside-content p {
    color: #c6ddd1;
    line-height: 1.85;
    font-size: 14px;
    max-width: 420px;
    margin: 0
}

.aside-points {
    display: grid;
    gap: 15px;
    margin-top: 32px
}

.aside-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e4f0e8;
    font-size: 12px;
    font-weight: 600
}

.aside-point i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: var(--gold)
}

.aside-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #b8d0c3;
    font-size: 10px
}

.aside-footer span:last-child {
    white-space: nowrap
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 28px;
    min-width: 0
}

.auth-card {
    width: min(100%, 450px)
}

.mobile-brand {
    display: none
}

.auth-heading {
    margin-bottom: 27px
}

.auth-heading .eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #a47b00;
    text-transform: uppercase
}

.auth-heading h2 {
    font-size: 32px;
    letter-spacing: -.05em;
    line-height: 1.15;
    margin: 11px 0 9px;
    color: var(--green-dark)
}

.auth-heading p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0
}

.form-stack {
    display: grid;
    gap: 17px
}

.field {
    display: grid;
    gap: 8px
}

.field label {
    font-size: 11px;
    font-weight: 800;
    color: #344c40
}

.field input {
    width: 100%;
    height: 49px;
    border: 1px solid #dce7df;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    outline: none;
    transition: border .2s, box-shadow .2s
}

.field input::placeholder {
    color: #a0aca4
}

.field input:focus {
    border-color: var(--green);
}

.input-wrap {
    position: relative
}

.input-wrap input {
    padding-right: 48px
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #7c8c82;
    cursor: pointer;
    border-radius: 8px
}

.password-toggle:hover {
    background: #f0f6f1;
    color: var(--green)
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 11px
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #687970
}

.remember input,
.check-row input {
    accent-color: var(--green);
    width: 15px;
    height: 15px;
    margin: 0
}

.text-link {
    color: var(--green);
    font-weight: 800
}

.text-link:hover {
    text-decoration: underline
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: background .2s, transform .2s
}

.auth-submit:hover {
    background: #00543f;
    transform: translateY(-1px)
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(255, 201, 40, .7);
    outline-offset: 3px
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
    line-height: 1.7;
    color: #6d7d73
}

.check-row input {
    margin-top: 3px;
    flex-shrink: 0
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #e5eee6;
    background: #f1f8f2;
    border-radius: 10px;
    padding: 12px;
    color: #668073;
    font-size: 10px;
    line-height: 1.65
}

.form-note i {
    color: var(--green);
    font-size: 14px;
    flex-shrink: 0
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #a0aaa3;
    font-size: 10px;
    margin: 23px 0
}

.auth-divider:before,
.auth-divider:after {
    content: "";
    height: 1px;
    background: #e5ece6;
    flex: 1
}

.auth-switch {
    text-align: center;
    font-size: 12px;
    color: #7c8a81;
    margin: 22px 0 0
}

.auth-bottom {
    text-align: center;
    font-size: 10px;
    color: #9aa69d;
    line-height: 1.8;
    margin-top: 28px
}

.auth-bottom a {
    color: #687d70
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 18px
}

.auth-alert.error {
    color: #9f2929;
    background: #fff0f0;
    border: 1px solid #ffd7d7
}

.auth-alert.success {
    color: #176441;
    background: #ecf9f0;
    border: 1px solid #ccebd6
}

.auth-alert ul {
    padding-left: 18px;
    margin: 5px 0 0
}

.password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    margin-top: 1px
}

.password-rules span {
    font-size: 10px;
    color: #8a9990;
    display: flex;
    align-items: center;
    gap: 6px
}

.password-rules span i {
    font-size: 11px
}

.password-rules span.valid {
    color: var(--green)
}

.password-rules span.valid i:before {
    content: "\\f26b"
}

.auth-icon-large {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: #fff2c4;
    color: #a77c00;
    border-radius: 17px;
    font-size: 24px;
    margin-bottom: 21px
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #6f8075;
    margin-top: 20px
}

.back-link:hover {
    color: var(--green)
}

.strength-track {
    height: 4px;
    background: #e8eee9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 7px
}

.strength-track span {
    display: block;
    height: 100%;
    width: 0;
    background: #dc9f00;
    transition: width .2s, background .2s
}

.strength-label {
    font-size: 10px;
    color: #88978d;
    margin-top: 5px
}

.auth-card.register-card {
    width: min(100%, 470px)
}

.register-card .auth-heading {
    margin-bottom: 22px
}

.register-card .form-stack {
    gap: 13px
}

.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.mobile-brand img {
    width: 145px
}

.auth-illustration {
    position: absolute;
    right: 4%;
    bottom: 15%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 201, 40, .1);
    display: grid;
    place-items: center;
    color: rgba(255, 201, 40, .8);
    font-size: 75px;
    transform: rotate(-12deg)
}

@media(max-width:950px) {
    .auth-shell {
        grid-template-columns: .78fr 1.22fr
    }

    .auth-aside {
        padding: 30px
    }

    .aside-content h1 {
        font-size: 42px
    }

    .auth-main {
        padding-inline: 25px
    }

    .auth-illustration {
        width: 110px;
        height: 110px;
        font-size: 55px;
        right: -15px
    }
}

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

    .auth-aside {
        display: none
    }

    .auth-main {
        min-height: 100vh;
        padding: 32px 22px;
        align-items: flex-start
    }

    .auth-card {
        margin: auto
    }

    .mobile-brand {
        display: inline-flex;
        align-items: center;
        margin-bottom: 43px
    }

    .auth-heading h2 {
        font-size: 30px
    }

    .auth-bottom {
        margin-top: 25px
    }

    .auth-card.register-card {
        padding-bottom: 20px
    }
}

@media(max-width:400px) {
    .auth-main {
        padding: 24px 17px
    }

    .mobile-brand {
        margin-bottom: 35px
    }

    .two-fields {
        grid-template-columns: 1fr;
        gap: 13px
    }

    .form-row {
        align-items: flex-start
    }

    .password-rules {
        grid-template-columns: 1fr 1fr;
        gap: 7px
    }

    .auth-heading h2 {
        font-size: 28px
    }
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.alert-success {
    color: #176441;
    background: #ecf9f0;
    border: 1px solid #ccebd6;
}

.alert-danger {
    color: #9f2929;
    background: #fff0f0;
    border: 1px solid #ffd7d7;
}



.auth-submit:disabled,
.auth-submit.otp-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #172033 !important;
    caret-color: #172033;
    transition: background-color 9999s ease-in-out 0s;
}
