* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: radial-gradient(circle at 10% 10%, rgba(245, 188, 79, .18), transparent 24%),
                linear-gradient(135deg, #061c3f 0%, #082f6b 45%, #061b3d 100%);
    color: #ffffff;
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 50px 7vw;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.auth-left,
.auth-panel {
    position: relative;
    z-index: 1;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 55px;
}

.logo-mark {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid #f3bd4f;
    display: grid;
    place-items: center;
    font-size: 42px;
    color: #f3bd4f;
}

.logo-block h1 {
    margin: 0;
    font-size: 48px;
    color: #f5c15c;
    letter-spacing: .08em;
    line-height: .9;
}

.logo-block p {
    margin: 8px 0 0;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #d9e6ff;
    font-size: 13px;
}

.auth-left h2 {
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.1;
    margin: 0;
}

.auth-left h2 span {
    color: #f5c15c;
}

.gold-line {
    width: 70px;
    height: 4px;
    background: #f5c15c;
    border-radius: 20px;
    margin: 26px 0;
}

.intro {
    max-width: 620px;
    color: #dbe8ff;
    font-size: 19px;
    line-height: 1.7;
}

.benefits {
    display: grid;
    gap: 22px;
    margin-top: 34px;
    max-width: 620px;
}

.benefits div {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 16px;
    align-items: center;
}

.benefits i {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.05);
    font-style: normal;
    color: #f5c15c;
    font-size: 26px;
}

.benefits strong {
    color: #ffffff;
    font-size: 18px;
}

.benefits small {
    color: #c9d8ee;
    line-height: 1.5;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 64px;
    max-width: 760px;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 22px;
}

.auth-stats strong {
    display: block;
    font-size: 24px;
}

.auth-stats span {
    color: #c8d5e8;
    font-size: 13px;
}

.auth-panel {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    background: rgba(6, 28, 63, .72);
    border: 1px solid rgba(161, 190, 231, .25);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}

.register-panel {
    max-width: 820px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 34px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.tabs a {
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 18px;
    font-size: 20px;
    font-weight: 700;
}

.tabs a.active {
    color: #f5c15c;
    border-bottom: 3px solid #f5c15c;
}

.auth-error {
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fecaca;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.input-wrap {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(201, 216, 238, .28);
    border-radius: 13px;
    padding: 0 16px;
    margin-bottom: 14px;
    background: rgba(255,255,255,.04);
}

.input-wrap span {
    opacity: .9;
}

.input-wrap input,
.input-wrap select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
}

.input-wrap select option {
    color: #071d49;
}

.input-wrap input::placeholder {
    color: #b8c5d9;
}

.password-toggle {
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 28px;
    gap: 14px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd8ea;
    font-size: 14px;
}

.check-line input {
    width: 20px;
    height: 20px;
    accent-color: #f5c15c;
}

.check-line.terms {
    margin: 6px 0 18px;
}

.form-row a,
.switch-text a {
    color: #f5c15c;
    text-decoration: none;
    font-weight: 800;
}

.auth-btn {
    width: 100%;
    height: 62px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d99d2b, #ffd36b);
    color: #071d49;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(245, 193, 92, .22);
}

.switch-text {
    text-align: center;
    color: #cbd8ea;
    margin-top: 28px;
}

@media (max-width: 1180px) {
    .auth-page {
        grid-template-columns: 1fr;
        padding: 36px 5vw;
    }

    .auth-panel {
        margin: 0;
        max-width: 100%;
    }

    .auth-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-left h2 {
        font-size: 38px;
    }

    .logo-block {
        margin-bottom: 30px;
    }

    .logo-mark {
        width: 62px;
        height: 62px;
        font-size: 30px;
    }

    .logo-block h1 {
        font-size: 34px;
    }

    .auth-panel {
        padding: 24px;
        border-radius: 22px;
    }

    .form-grid,
    .form-grid.three {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-stats {
        grid-template-columns: 1fr 1fr;
        margin-top: 36px;
    }
}
