/**
 * Auth CSS - Login Pages Styling
 * DoctorCheck Authentication System
 *
 * - Gradient viola background (super admin)
 * - Gradient teal background (farmacista)
 * - Responsive design
 * - Modern glassmorphism effect
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === BACKGROUNDS === */
body.admin-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.farmacista-login {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

/* === LOGIN CONTAINER === */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* === HEADER === */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-header .subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

body.admin-login .login-header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.farmacista-login .login-header h1 {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === ALERTS === */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

/* === FORM === */
.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

body.farmacista-login .form-group input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

/* === BUTTON === */
.btn {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

body.farmacista-login .btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

body.farmacista-login .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

/* === FOOTER === */
.login-footer {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    margin-bottom: 8px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

body.farmacista-login .login-footer a {
    color: #14b8a6;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-header .subtitle {
        font-size: 14px;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }
}
