/* Log in page: password reveal, remember row, sign-in providers, rate-limit notices.
   Shared field, button and link styles live in base_auth.css. */

.password-container input {
    padding-right: 3.25rem;
}

.auth-card .toggle-password {
    position: absolute;
    right: 0.375rem;
    bottom: 0.25rem;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.auth-card .toggle-password:hover:not([disabled]) {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.toggle-password::before {
    content: "\f06e";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 15px;
}

.toggle-password.visible::before {
    content: "\f070";
}

.remember-forgot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-size: 0.9375rem;
}

/* Django's own lists are re-shown by login.js as field messages. */
.errorlist {
    display: none;
}

.rate-limit-warning,
.account-blocked {
    display: none;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border-radius: 8px;
}

.rate-limit-warning {
    color: var(--text-primary);
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
}

.account-blocked {
    color: var(--text-primary);
    background: var(--error-bg);
    border: 1px solid var(--error-border);
}

.rate-limit-active .rate-limit-warning {
    display: flex;
}

/* ---------- Sign-in providers ---------- */
.social-login {
    margin-top: 1.75rem;
}

.auth-card .social-login__label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.875rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-login__label::before,
.social-login__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-medium);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.auth-card a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    transition: background-color 0.15s ease;
}

.auth-card a.social-icon:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    text-decoration: none;
}

.social-icon::before {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands";
    font-weight: 400;
    font-size: 1rem;
}

.social-icon.google::before { content: "\f1a0"; color: #ea4335; }
.social-icon.microsoft::before { content: "\f3ca"; color: #0078d4; }
.social-icon.twitter::before { content: "\e61b"; }
.social-icon.apple::before { content: "\f179"; }

.auth-card .register-text {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

@media (max-width: 380px) {
    .social-icons {
        grid-template-columns: minmax(0, 1fr);
    }
}
