html,
body.auth-body {
    min-height: 100%;
}

body.auth-body {
    margin: 0;
    color: #fff;
    background:
        radial-gradient(circle at 12% 88%, rgba(0, 111, 238, 0.18), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(147, 83, 211, 0.16), transparent 32rem),
        url('/images/bg-noise.png') fixed 100% 100%,
        #111c33;
    font-family: 'Montserrat', sans-serif;
}

body.auth-body > main {
    min-height: 100vh;
}

.auth-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 32px 20px;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    position: absolute;
    width: 360px;
    height: 360px;
    content: '';
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.auth-page::before {
    right: -160px;
    top: -150px;
    background: rgba(147, 83, 211, 0.2);
}

.auth-page::after {
    bottom: -180px;
    left: -150px;
    background: rgba(0, 111, 238, 0.2);
}

.auth-card {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(20, 32, 58, 0.88);
    box-shadow: 0 24px 80px rgba(2, 8, 23, 0.45);
    backdrop-filter: blur(18px);
}

.auth-card__header {
    margin-bottom: 30px;
}

.auth-card__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #44a7ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-card__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
}

.auth-form .auth-control {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 15px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    outline: none;
    background-color: #1e293b;
    box-shadow: none;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form select.auth-control {
    cursor: pointer;
}

.auth-form .auth-control::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.auth-form .auth-control:focus {
    color: #fff;
    border-color: #006fee;
    background-color: #243149;
    box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.16);
}

.auth-form .auth-control option {
    color: #fff;
    background: #1e293b;
}

.auth-form .has-error .auth-control {
    border-color: #f31260;
}

.auth-form .help-block {
    margin: 7px 0 0;
    color: #ff5c91;
    font-size: 11px;
    line-height: 1.45;
}

.auth-form__recovery {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 22px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
}

.auth-form__recovery a {
    color: #44a7ff;
    font-weight: 600;
    text-decoration: none;
}

.auth-form__recovery a:hover {
    color: #74bdff;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: #006fee;
    box-shadow: 0 10px 28px rgba(0, 111, 238, 0.28);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #1682ff;
    box-shadow: 0 12px 32px rgba(0, 111, 238, 0.38);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    content: '';
    background: rgba(255, 255, 255, 0.08);
}

.auth-telegram {
    min-height: 40px;
    text-align: center;
    line-height: 0;
    background: transparent;
}

.auth-telegram iframe {
    display: inline-block;
    overflow: hidden;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    clip-path: inset(0 round 999px);
    -webkit-clip-path: inset(0 round 999px);
}

.auth-telegram > div {
    display: inline-flex;
    overflow: hidden;
    max-width: 100%;
    border-radius: 999px;
    background: transparent;
    clip-path: inset(0 round 999px);
    -webkit-clip-path: inset(0 round 999px);
}

.auth-alert,
.auth-card .alert {
    margin: 0 0 22px;
    padding: 13px 15px;
    color: #70e6a3;
    border: 1px solid rgba(23, 201, 100, 0.22);
    border-radius: 11px;
    background: rgba(23, 201, 100, 0.1);
    font-size: 12px;
    line-height: 1.5;
}

.auth-card .alert p {
    margin: 0;
}

@media (max-width: 575.98px) {
    .auth-page {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .auth-card {
        margin: auto 0;
        padding: 30px 22px;
        border-radius: 18px;
    }

    .auth-card h1 {
        font-size: 26px;
    }

    .auth-form__recovery {
        flex-direction: column;
        gap: 5px;
    }
}
