/* Authentication page styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    background: rgba(36,36,36,0.9);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
}

body.day-mode .auth-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #60a5fa;
    font-size: 2em;
    margin-bottom: 10px;
}

body.day-mode .auth-header h2 {
    color: #2563eb;
}

.auth-header p {
    color: #888;
    font-size: 0.95em;
}

body.day-mode .auth-header p {
    color: #666;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #e0e0e0;
    font-size: 0.95em;
    font-weight: 500;
}

body.day-mode .form-group label {
    color: #111827;
}

.form-group input {
    padding: 12px 16px;
    font-size: 1em;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.day-mode .form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-button {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
}

body.day-mode .auth-button:disabled {
    background: #d0d0d0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

body.day-mode .auth-footer {
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #888;
    font-size: 0.9em;
}

body.day-mode .auth-footer p {
    color: #666;
}

.auth-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

body.day-mode .auth-footer a {
    color: #2563eb;
}

body.day-mode .auth-footer a:hover {
    color: #1d4ed8;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.auth-alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #f87171;
}

.auth-alert.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #4ade80;
}

body.day-mode .auth-alert.error {
    background-color: #fee2e2;
    color: #dc2626;
}

body.day-mode .auth-alert.success {
    background-color: #dcfce7;
    color: #16a34a;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
    user-select: none;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 1.6em;
    }
}