/* Login Page Styles
 * Extracted from login.html for better caching and maintainability
 */

/* Consistent font styling to match backend */
body {
    background-color: #f5f4f2 !important;
}

.login-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

.demo-button {
    background-color: transparent;
    border: 2px solid var(--paynes-gray);
    color: var(--paynes-gray);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-button:hover {
    background-color: var(--paynes-gray);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Form styling */
.form-label {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--paynes-gray);
    box-shadow: 0 0 0 0.2rem rgba(69, 105, 135, 0.25);
}

/* Checkbox styling */
.form-check-label {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #495057;
}

.form-check-label a {
    color: var(--paynes-gray);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Button styling */
.btn-primary {
    background-color: var(--paynes-gray);
    border-color: var(--paynes-gray);
    color: white;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary:hover {
    background-color: var(--charcoal);
    border-color: var(--charcoal);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Link styling */
.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--paynes-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-links a:hover {
    color: var(--charcoal);
    text-decoration: underline;
}

/* Alert styling */
.alert {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border-radius: 6px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        margin: 10px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .form-label {
        font-size: 14px; /* Keep readable on mobile */
    }
    
    .form-control {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 12px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 12px 24px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .login-links a {
        font-size: 14px;
    }
    
    /* Demo button mobile improvements */
    .demo-button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 15px;
        margin: 5px;
    }
    
    .row.justify-content-center {
        margin: 0;
    }
    
    .col-md-6.col-lg-5 {
        padding: 0;
    }
}

/* ========================================
   Google SSO Styles
   ======================================== */

/* Google SSO Divider */
.google-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.google-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dee2e6;
}

.divider-text {
    position: relative;
    background-color: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Google Sign-In/Sign-Up Button */
.google-signin-btn,
.google-signup-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid #dc3545;
    color: #dc3545;
    background-color: white;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.google-signin-btn:hover,
.google-signup-btn:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.google-signin-btn:focus,
.google-signup-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    outline: none;
}

.google-signin-btn:disabled,
.google-signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.google-signin-btn .fab,
.google-signup-btn .fab {
    font-size: 18px;
}

/* Mobile Responsiveness for Google Button */
@media (max-width: 768px) {
    .google-signin-btn,
    .google-signup-btn {
        font-size: 16px;
        padding: 12px 20px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .divider-text {
        font-size: 13px;
        padding: 0 12px;
    }
}

@media (max-width: 576px) {
    .google-signin-btn,
    .google-signup-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .divider-text {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .google-divider {
        margin: 15px 0;
    }
}

