/**
 * TEJOURY Lead Management System
 * Main Stylesheet
 * Font: Exo (Normal & Bold)
 */

/* Import Exo Font */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;700&display=swap');

/* CSS Variables - TEJOURY Brand Colors */
:root {
    /* Primary Colors */
    --tejoury-blue: #0A3170;
    --complementary-blue: #00146FD7;
    
    /* Secondary Colors */
    --dark-navy: #0D0D17D3;
    --bright-blue: #5f9bd5;
    --yellow-gold: #f1a53e;
    --grey: #a3a3a3;
    --light-grey: #c2c2c2;
    
    /* Status Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Text Colors */
    --text-primary: #0D0D17D3;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0D0D17D3;
    
    /* Border & Shadow */
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--tejoury-blue);
    margin-bottom: 1rem;
}

a {
    color: var(--tejoury-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--bright-blue);
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tejoury-blue) 0%, var(--complementary-blue) 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.login-logo h1 {
    color: var(--tejoury-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Exo', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--tejoury-blue);
    box-shadow: 0 0 0 0.2rem rgba(10, 49, 112, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid {
    border-color: var(--success);
}

.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-group .form-control {
    padding-left: 45px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Exo', sans-serif;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--tejoury-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--complementary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--info);
    color: #0c5460;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkbox & Remember Me */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Login Footer */
.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-logo h1 {
        font-size: 2rem;
    }
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    user-select: none;
}

.password-toggle:hover {
    color: var(--tejoury-blue);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

/* Form Validation Messages */
.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}