/* Auth Pages Styles (login, password reset, account update) */

@font-face {
    font-family: "BBAnonym";
    src: url("../webFonts/BBAnonymProSemiNormal/font.woff2") format("woff2"),
         url("../webFonts/BBAnonymProSemiNormal/font.woff") format("woff");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    background: var(--bg-app);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "BBAnonym", Arial, sans-serif;
    font-size: var(--fs-body);
}

/* Layout with header and footer */
body.auth-page.with-header {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

/* Simple centered layout (no header/footer) */
body.auth-page:not(.with-header) {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===================== */
/* HEADER                */
/* ===================== */

.auth-header {
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.auth-header img {
    height: 22px;
}

/* ===================== */
/* MAIN CONTENT          */
/* ===================== */

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* Branding panel — hidden in new design */
.auth-branding {
    display: none;
}

/* Form panel — centered card */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

/* ===================== */
/* FOOTER                */
/* ===================== */

.auth-footer {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-body-sm);
    flex-shrink: 0;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===================== */
/* CARD                  */
/* ===================== */

.auth-card {
    max-width: 480px;
    width: 100%;
    border: none;
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
}

.auth-card.narrow {
    max-width: 420px;
}

.auth-card.login {
    padding: 40px;
    max-width: 420px;
}

.auth-card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    border-radius: 16px 16px 0 0;
    padding: 24px;
    text-align: center;
}

.auth-card-header h4 {
    margin: 0;
    color: var(--text-color);
}

.auth-card-body {
    padding: 24px;
}

.auth-logo {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.auth-logo i {
    font-size: var(--fs-kpi);
    color: white;
}

.auth-info-box {
    background: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.auth-info-box i {
    color: var(--primary);
}

.password-requirements {
    font-size: var(--fs-body-sm);
    color: var(--text-muted);
    margin-top: 8px;
    padding-left: 20px;
}

.password-requirements li {
    margin-bottom: 2px;
}

.auth-card .form-label {
    font-weight: var(--fw-medium);
    color: var(--text-color);
}

.auth-card .btn-primary {
    padding: 12px;
    font-weight: var(--fw-medium);
}

/* ===================== */
/* LOGIN VISUAL          */
/* ===================== */

.login-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 36px;
    margin-bottom: 20px;
}

.login-visual .lv-bar {
    width: 4px;
    height: var(--h, 16px);
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.25;
}

.login-visual .lv-bar.accent {
    background: var(--accent-red);
    opacity: 0.5;
}

/* ===================== */
/* ERROR MESSAGES        */
/* ===================== */

.auth-error-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--accent-red-bg);
    color: var(--accent-red-dark);
    font-size: var(--fs-body);
    margin-bottom: 20px;
}

.auth-error-box i {
    font-size: var(--fs-title);
    flex-shrink: 0;
}

.auth-error-box.locked {
    flex-direction: row;
    align-items: flex-start;
}

.auth-error-box.locked div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-error-box.locked strong {
    font-weight: var(--fw-medium);
}

.auth-error-box.locked span {
    font-size: var(--fs-body-sm);
    color: var(--accent-red-dark);
    opacity: 0.85;
}

/* ===================== */
/* LOGIN FORM            */
/* ===================== */

.auth-card h1 {
    font-size: var(--fs-kpi);
    font-weight: var(--fw-semibold);
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

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

.auth-card .form-group label {
    display: block;
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    color: var(--text-color);
    margin-bottom: 6px;
}

.auth-card .form-group .input-wrapper {
    position: relative;
}

.auth-card .form-group .input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.auth-card .form-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: var(--fs-title);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.auth-card .login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: var(--fs-title);
    font-weight: var(--fw-medium);
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-card .login-btn:hover {
    background: var(--primary);
}

.auth-card .forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: var(--fs-body);
    text-decoration: none;
}

.auth-card .forgot-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

@media (max-width: 768px) {
    .auth-main {
        padding: 20px;
    }
    .auth-card.login {
        padding: 24px;
    }
}
