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

.auth-public-html,
body.auth-public {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #101214;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

body.auth-public::before {
    display: none !important;
}

.auth-premium {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
    background: #101214;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #171a1c;
}

.auth-visual__photo {
    position: absolute;
    inset: 0;
}

.auth-visual__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.auth-visual__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10,12,13,.18), rgba(10,12,13,.04)),
        linear-gradient(0deg, rgba(10,12,13,.92) 0%, rgba(10,12,13,.25) 55%, rgba(10,12,13,.22) 100%);
}

.auth-visual__content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-visual__brand img {
    width: 145px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

.auth-visual__main {
    max-width: 620px;
    padding-bottom: 40px;
}

.auth-visual__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 19px;
    color: #7ED321;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-visual__eyebrow::before {
    content: "";
    width: 27px;
    height: 2px;
    background: #7ED321;
}

.auth-visual__main h1 {
    margin: 0;
    max-width: 610px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
}

.auth-visual__main h1 span {
    color: #7ED321;
}

.auth-visual__main > p {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.73);
    font-size: 16px;
    line-height: 1.7;
}

.auth-visual__stats {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.auth-visual__stat {
    min-width: 145px;
    padding: 15px 17px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(21,24,26,.64);
    backdrop-filter: blur(14px);
}

.auth-visual__stat strong,
.auth-visual__stat span {
    display: block;
}

.auth-visual__stat strong {
    color: #fff;
    font-size: 18px;
}

.auth-visual__stat span {
    margin-top: 4px;
    color: rgba(255,255,255,.57);
    font-size: 11px;
}

.auth-panel {
    min-height: 100vh;
    padding: 46px clamp(36px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(126,211,33,.08), transparent 32%),
        #121416;
}

.auth-panel__inner {
    width: 100%;
    max-width: 470px;
}

.auth-panel__top {
    margin-bottom: 38px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 38px;
    color: #929a9f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.auth-back:hover {
    color: #fff;
    text-decoration: none;
}

.auth-panel__top h2 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.035em;
    color: #fff;
}

.auth-panel__top p {
    margin: 10px 0 0;
    color: #939ba0;
    font-size: 14px;
    line-height: 1.55;
}

body.auth-public .field {
    margin-bottom: 20px;
}

body.auth-public .field label {
    display: block;
    margin-bottom: 8px;
    color: #dbe0e2;
    font-size: 12px;
    font-weight: 700;
}

body.auth-public .field input,
body.auth-public .field select,
body.auth-public .field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    outline: none;
    background: #1b1e20;
    color: #fff;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.auth-public .field input:hover {
    border-color: rgba(255,255,255,.18);
}

body.auth-public .field input:focus {
    border-color: #7ED321;
    background: #1e2224;
    box-shadow: 0 0 0 4px rgba(126,211,33,.09);
}

body.auth-public .field-error {
    display: block;
    min-height: 0;
    margin-top: 6px;
    color: #ff7b7b;
    font-size: 11px;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 3px;
    border: 0;
    border-radius: 13px;
    background: #7ED321;
    color: #11150e;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 35px rgba(126,211,33,.13);
}

.auth-links {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #8f979c;
    font-size: 13px;
    text-align: center;
}

.auth-links + .auth-links {
    margin-top: 11px;
    padding-top: 0;
    border-top: 0;
}

.auth-links a {
    color: #7ED321;
    font-weight: 700;
    text-decoration: none;
}

.auth-mini-note {
    margin-top: 28px;
    color: #666e73;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

#toast-container {
    z-index: 10000;
}

@media (max-width: 920px) {
    .auth-premium {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 420px;
    }

    .auth-visual__content {
        min-height: 420px;
        padding: 28px 26px;
    }

    .auth-visual__main {
        padding-bottom: 0;
    }

    .auth-visual__main h1 {
        max-width: 520px;
        font-size: clamp(40px, 9vw, 58px);
    }

    .auth-panel {
        min-height: auto;
        padding: 56px 24px 70px;
        align-items: flex-start;
    }
}

@media (max-width: 580px) {
    .auth-visual {
        min-height: 335px;
    }

    .auth-visual__content {
        min-height: 335px;
        padding: 22px 20px;
    }

    .auth-visual__brand img {
        width: 112px;
        height: 42px;
    }

    .auth-visual__main h1 {
        font-size: 39px;
    }

    .auth-visual__main > p {
        display: none;
    }

    .auth-visual__stats {
        display: none;
    }

    .auth-panel {
        padding: 39px 20px 60px;
    }

    .auth-back {
        margin-bottom: 28px;
    }

    .auth-panel__top {
        margin-bottom: 29px;
    }

    .auth-panel__top h2 {
        font-size: 30px;
    }
}
