/* 
 * Bloodworks.app - Authentication Pages Styling
 * Medical blue/teal theme
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0c1222 0%, #060d1b 100%);
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.85));
    border: 2px solid rgba(8, 145, 178, 0.25);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.auth-box h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-box h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: #94a3b8;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 16px;
    transition: all 0.3s;
}

.auth-box input:focus {
    outline: none;
    border-color: #0891b2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.auth-box input::placeholder {
    color: #64748b;
}

.auth-box button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.4);
}

.auth-box button[type="submit"]:active {
    transform: translateY(0);
}

.auth-box button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-box p {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 14px;
}

.auth-box p a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-box p a:hover {
    color: #22d3ee;
}

/* Message Box */
#message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

#message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

#message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

#message.info {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox for Remember Me */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0891b2;
}

.auth-checkbox label {
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-box {
        padding: 32px 24px;
    }
    
    .auth-box h1 {
        font-size: 28px;
    }
    
    .auth-box h2 {
        font-size: 18px;
    }
    
    .auth-box input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .auth-box button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

.text-muted { color: #94a3b8; }
.text-primary { color: #0891b2; }
.text-success { color: #10b981; }
.text-error { color: #ef4444; }

.hidden {
    display: none !important;
}
