/* Shared styles for the password recovery / restore screens.
   The background image is applied inline in layouts/base.html via {% static %}. */

body.auth-body {
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(52, 73, 94, 0.15);
    padding: 28px 32px;
    width: 100%;
    min-width: 280px;
    max-width: 420px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(52, 73, 94, 0.1);
    opacity: 0.9;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 73, 94, 0.2);
}

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

.auth-brand-logo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.auth-brand-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.auth-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #5a6c7d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 18px;
}

.auth-card .form-control {
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-card .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    background-color: white;
    outline: none;
}

.auth-card .form-control::placeholder {
    color: #7f8c8d;
}

.auth-card .form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 6px;
}

.btn-auth {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
}

.btn-auth:disabled {
    opacity: 0.55;
    color: white;
}

.auth-card .alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 14px;
}

.auth-card .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.auth-card .alert-warning {
    background-color: #fff3cd;
    color: #7a5b00;
    border-left: 4px solid #ffc107;
}

.auth-card .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.password-container {
    position: relative;
}

.password-container .form-control {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    font-size: 18px;
    transition: color 0.3s ease;
    user-select: none;
}

.toggle-password:hover {
    color: #3498db;
}

.password-hints {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6c7d;
}

.password-hints ul {
    margin: 0;
    padding-left: 18px;
}

.password-match {
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.password-match.ok {
    color: #1e8449;
}

.password-match.error {
    color: #c0392b;
}

.auth-help {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #5a6c7d;
}

.auth-help a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-help a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.auth-link {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 13px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #3498db;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}
