/* ── Auth flow — shared card styles ─────────────────────────────────── */

/* Body font override — .authentication-bg is set by base.html on auth pages only */
body.authentication-bg {
    font-family: 'Nunito', sans-serif;
}

/* Font — card descendants */
.auth-card,
.auth-card h1,
.auth-card h2,
.auth-card h5,
.auth-card p,
.auth-card label,
.auth-card .auth-title,
.auth-card .form-control {
    font-family: 'Nunito', sans-serif;
}

/* Title */
.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2d3142;
    margin-bottom: 0.25rem;
    text-align: center;
}

/* Subtitle */
.auth-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Success feedback */
.auth-success-icon {
    font-size: 2.5rem;
    color: #5059bc;
    margin-bottom: 0.5rem;
}

/* Errors */
.alert-danger {
    background-color: #fff2f2;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.text-danger {
    color: #dc3545;
    font-size: 0.8rem;
}

/* Form groups */
.auth-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #2d3142;
    margin-bottom: 0.35rem;
    display: block;
}

/* .form-control inputs — override theme's border/radius with higher specificity */
.auth-card .form-control,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="number"],
.auth-card select,
.auth-card textarea,
.auth-card .form-group input,
.auth-card .form-group select,
.auth-card .form-group textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Nunito', sans-serif;
    box-shadow: none;
    background-color: #fff;
    color: #2d3142;
}

.auth-card .form-control:focus,
.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="number"]:focus,
.auth-card select:focus,
.auth-card textarea:focus,
.auth-card .form-group input:focus,
.auth-card .form-group select:focus,
.auth-card .form-group textarea:focus {
    border-color: #5059bc !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(80, 89, 188, 0.18) !important;
    background-color: #fff;
}

/* Full-width primary CTA */
.btn-auth-primary {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: #5059bc;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    background-color: #3d44a0;
    box-shadow: 0 4px 12px rgba(80, 89, 188, 0.3);
    color: #fff;
    outline: none;
}

/* Auxiliary links */
.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-family: 'Nunito', sans-serif;
}

.auth-links a {
    color: #5059bc;
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #3d44a0;
}

/* Password hints */
.auth-hints {
    background: #f4f5fb;
    border-left: 3px solid #5059bc;
    border-radius: 4px;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #4a4f6a;
    font-family: 'Nunito', sans-serif;
}

.auth-hints ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* Token fail state */
.auth-token-fail {
    text-align: center;
    padding: 1rem 0;
}

.auth-token-fail p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
}
