/* ======================================================
   AUTH — shared styles for login.html / forgot-password.html
   and the layouts/auth.html template.
   Loaded together with app.css (variables/reset/typography).
====================================================== */

.auth-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--bg-page-alt2);
    padding:24px;
}

.auth-card{
    width:100%;
    max-width:440px;
    background:var(--bg-card);
    border:1px solid var(--border-card);
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-lg);
    padding:40px 36px;
}

.auth-brand{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:12px;
    margin-bottom:28px;
    text-align:center;
}

.auth-brand .logo-box{
    width:58px;
    height:58px;
    background:var(--primary);
    color:var(--white);
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    font-size:26px;
}

.auth-brand h1{
    font-size:24px;
    font-weight:700;
    color:var(--text-dark);
    margin:0;
}

.auth-brand p{
    font-size:13px;
    color:var(--text-secondary);
    margin:0;
}

.auth-field{
    margin-bottom:18px;
}

.auth-field label{
    display:block;
    font-size:13px;
    font-weight:600;
    color:var(--text-primary);
    margin-bottom:7px;
}

.auth-input{
    width:100%;
    padding:12px 14px;
    border:1px solid var(--border-input);
    border-radius:var(--radius-md);
    background:var(--bg-soft);
    font-size:14px;
    color:var(--text-dark);
    transition:var(--transition);
}

.auth-input:focus{
    border-color:var(--primary);
    background:var(--white);
    box-shadow:0 0 0 3px var(--primary-light);
}

.auth-input-wrap .auth-input-icon{
    position:relative;
}

.auth-input-wrap i{
    position:absolute;
    top:50%;
    left:14px;
    transform:translateY(-50%);
    color:var(--text-light);
    font-size:14px;
    pointer-events:none;
}

.auth-input-icon .auth-input{
    padding-left:40px;
}

.auth-forgot-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
    flex-wrap:wrap;
    gap:8px;
}

.auth-checkbox{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:13px;
    color:var(--text-secondary);
}

.auth-checkbox input{
    accent-color:var(--primary);
}

.auth-link{
    color:var(--primary);
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

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

.btn-auth{
    width:100%;
    padding:13px;
    background:var(--primary);
    color:var(--white);
    border:none;
    border-radius:var(--radius-md);
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:var(--transition);
}

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

.auth-footnote{
    text-align:center;
    margin-top:20px;
    font-size:13px;
    color:var(--text-secondary);
}

.auth-footnote a{
    color:var(--primary);
    font-weight:600;
    text-decoration:none;
}

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

.auth-error-box{
    display:none;
    background:var(--danger-bg);
    border:1px solid var(--danger-border);
    color:var(--danger-red);
    border-radius:var(--radius-md);
    padding:11px 14px;
    font-size:13px;
    margin-bottom:18px;
}

.auth-error-box.show{
    display:block;
}

.auth-success-box{
    display:none;
    background:var(--success-bg);
    border:1px solid var(--success-border-soft);
    color:var(--primary-dark);
    border-radius:var(--radius-md);
    padding:11px 14px;
    font-size:13px;
    margin-bottom:18px;
}

.auth-success-box.show{
    display:block;
}

@media (max-width:480px){
    .auth-card{
        padding:28px 20px;
    }
}