/* ============================================================================
   VitiSalus - Authentication Pages CSS
   Login, Register, Reset Password
   ============================================================================ */

:root {
    --viti-green: #2d5016;
    --viti-green-dark: #1a3009;
    --viti-green-light: #3d6026;
}

/* ============================================================================
   BODY & CONTAINER
   ============================================================================ */

body.auth-page {
    background: linear-gradient(135deg, #2d5016 0%, #3d6026 50%, #4d7036 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.auth-header {
    background: linear-gradient(135deg, var(--viti-green), var(--viti-green-light));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.auth-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.grape-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ============================================================================
   BODY
   ============================================================================ */

.auth-body {
    padding: 40px 30px;
}

/* ============================================================================
   FORMS
   ============================================================================ */

.auth-body .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.auth-body .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-body .form-control:focus {
    border-color: var(--viti-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.1);
}

.auth-body .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.auth-body .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-auth {
    background: linear-gradient(135deg, var(--viti-green), var(--viti-green-light));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    background: linear-gradient(135deg, var(--viti-green-dark), var(--viti-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
    color: white;
}

.btn-auth:disabled {
    background: #ccc;
    transform: none;
    cursor: not-allowed;
}

/* ============================================================================
   DIVIDER
   ============================================================================ */

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

/* ============================================================================
   LINKS
   ============================================================================ */

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: var(--viti-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.auth-body .alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

/* ============================================================================
   PASSWORD TOGGLE
   ============================================================================ */

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--viti-green);
}

/* ============================================================================
   PASSWORD STRENGTH
   ============================================================================ */

.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-weak { 
    background: #dc3545; 
    width: 33%; 
}

.strength-medium { 
    background: #ffc107; 
    width: 66%; 
}

.strength-strong { 
    background: #28a745; 
    width: 100%; 
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.auth-footer {
    text-align: center;
    margin-top: 30px;
}

.auth-footer small {
    color: rgba(255,255,255,0.8);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 576px) {
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .grape-icon {
        font-size: 2rem;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
}
