
.bg-grid::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1), rgba(0,0,0,.35));
    pointer-events: none;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-layout {
    width: 100%;
    max-width: 1220px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-panel {
    padding: 42px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    max-width: 720px;
}

.hero-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 660px;
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.stat-card {
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    border-radius: 20px;
    padding: 18px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

.auth-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
}

.auth-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.theme-input {
    height: 58px;
    border-radius: 16px;
}

.btn-login {
    height: 58px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 0;
    color: #fff;
    box-shadow: 0 15px 30px rgba(77,171,247,.28);
}

    .btn-login:hover {
        color: #fff;
        filter: brightness(1.05);
    }

.invalid-feedback {
    display: block;
    color: #ff9aad;
    margin-top: 8px;
    font-size: 13px;
}

.theme-input.is-invalid {
    border-color: rgba(255,92,122,.8);
    box-shadow: 0 0 0 4px rgba(255,92,122,.15);
}

.theme-input.is-valid {
    border-color: rgba(47,211,138,.65);
    box-shadow: 0 0 0 4px rgba(47,211,138,.12);
}


.auth-layout {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .page-wrap {
        padding: 20px 14px;
    }

    .hero-panel {
        display: none;
    }

    .auth-card {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .theme-input {
        height: 54px;
        border-radius: 14px;
    }

    .btn-login {
        height: 54px;
        border-radius: 14px;
    }

    .hero-badge {
        font-size: .78rem;
        padding: .45rem .75rem;
    }
}

@media (max-width: 575.98px) {
    .page-wrap {
        padding: 12px;
    }

    .auth-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .form-label {
        font-size: .92rem;
        margin-bottom: .45rem;
    }

    .theme-input {
        height: 50px;
        font-size: 15px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .btn-login {
        height: 50px;
        font-size: 15px;
    }

    .form-text {
        font-size: 12px;
    }

    .hero-badge {
        font-size: .74rem;
        padding: .42rem .68rem;
    }

    #loginError {
        font-size: 13px;
    }
}


.auth-logo {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: inline-grid;
    place-items: center;
    border: rgba(0, 0, 0, 0.1) 1px solid;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    /*background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 24px 42px rgba(77, 171, 247, .28);*/
}

.auth-logo img {
    height: 68px;
}