/**
 * Authentication Styles
 * File: public/assets/css/auth.css
 * Description: Authentication specific styles
 * Dependencies: Bootstrap 5
 */

/* ===== AUTH CONTAINER ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* ===== LOGO & BRANDING ===== */
.auth-logo {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.welcome-text {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
    text-align: center;
}

.app-name {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.greeting {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* ===== FORM STYLES ===== */
.auth-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

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

.auth-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Bootstrap Form Floating Styles */
.form-floating {
    margin-bottom: 20px;
}

.form-floating .form-control {
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

/* ===== MESSAGE STYLES ===== */
.auth-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ===== VALIDATION ERROR STYLES ===== */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    text-align: left;
}

/* ===== ALERT MESSAGES STYLES ===== */
.alert {
    text-align: left !important;
}

.alert .btn-close {
    float: right;
}


.auth-success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* ===== DEMO CREDENTIALS ===== */
.auth-demo-credentials {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
}

.auth-demo-credentials h4 {
    color: #333;
    margin-bottom: 10px;
}

.auth-demo-credentials p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* ===== SYSTEM INFO ===== */
.system-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.info-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.time-info {
    text-align: center;
    color: #999;
    font-size: 0.8em;
    margin-top: 15px;
}

/* ===== FOOTER ===== */
.auth-footer {
    margin-top: 30px;
    color: #999;
    font-size: 0.9em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-logo {
        font-size: 2.5em;
    }
    
    .auth-subtitle {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-logo {
        font-size: 2em;
    }
}