/* =========================================
   1. ROOT VARIABLES (Brand Colors)
   ========================================= */
:root {
    /* Primary Brand Colors */
   
    --reliance-red: #FA0000;
    --reliance-grey: #495D69;

    --rfs-red: #D30915;
    --rfs-red-hover: #b00711;
    --rfs-black: #000000;
    --rfs-white: #ffffff;
    
    /* Neutral Colors */
    --rfs-grey-100: #f8f9fa; /* Light Backgrounds */
    --rfs-grey-200: #e9ecef; /* Borders */
    --rfs-grey-600: #6c757d; /* Muted Text */
    --rfs-grey-800: #343a40; /* Dark Text */
    
    /* Application Background */
    --app-bg: #f4f6f9;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
body {
    background-color: var(--app-bg);
    font-family: 'Nunito', sans-serif; /* Matches your app.blade.php */
    color: var(--rfs-grey-800);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--rfs-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--rfs-red-hover);
    text-decoration: underline;
}


/* =========================================
   3. BUTTONS (Overrides Bootstrap)
   ========================================= */
.btn-primary-rfs {
    background-color: var(--rfs-red);
    border-color: var(--rfs-red);
    color: var(--rfs-white);
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary-rfs:hover, 
.btn-primary-rfs:focus, 
.btn-primary-rfs:active {
    background-color: var(--rfs-red-hover) !important;
    border-color: var(--rfs-red-hover) !important;
    color: var(--rfs-white) !important;
    box-shadow: 0 4px 6px rgba(211, 9, 21, 0.2);
}

.btn-outline-rfs {
    background-color: transparent;
    border: 1px solid var(--rfs-red);
    color: var(--rfs-red);
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-rfs:hover {
    background-color: var(--rfs-red);
    color: var(--rfs-white);
}

/* =========================================
   4. CARDS & CONTAINERS
   ========================================= */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    background-color: var(--rfs-white);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--rfs-white);
    border-bottom: 1px solid var(--rfs-grey-200);
    padding: 1.25rem;
    font-weight: 700;
    color: var(--rfs-black);
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.card-body {
    padding: 1.5rem;
}

/* =========================================
   5. FORMS
   ========================================= */
.form-label {
    font-weight: 600;
    color: var(--rfs-grey-800);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid var(--rfs-grey-200);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--rfs-red);
    box-shadow: 0 0 0 0.2rem rgba(211, 9, 21, 0.15); /* Soft Red Glow */
}

/* Custom Checkbox Color */
.form-check-input:checked {
    background-color: var(--rfs-red);
    border-color: var(--rfs-red);
}

/* =========================================
   6. UTILITIES
   ========================================= */
.text-rfs-red {
    color: var(--rfs-red) !important;
}

.bg-rfs-red {
    background-color: var(--rfs-red) !important;
}

.shadow-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s ease;
}

    /* Full height container to center the card vertically */
    .login-wrapper {
        min-height: 90vh; /* Takes up most of the screen */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .login-card {
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        background: white;
        overflow: hidden;
        max-width: 450px;
        width: 100%;
    }

    .brand-header {
        background-color: white;
        padding: 40px 30px 20px;
        text-align: center;
    }

    .brand-logo {
        height: 80px; /* Adjust based on your logo aspect ratio */
        width: auto;
        margin-bottom: 15px;
    }

    .login-title {
        color: var(--rfs-black);
        font-weight: 700;
        font-size: 1.25rem;
        margin-bottom: 0;
    }

    .login-subtitle {
        color: var(--rfs-grey);
        font-size: 0.9rem;
        margin-top: 5px;
    }

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

    /* 4. Form Styling */
    .form-label {
        font-weight: 600;
        color: #333;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        background-color: #fafafa;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .form-control:focus {
        background-color: white;
        border-color: var(--rfs-red);
        box-shadow: 0 0 0 4px rgba(211, 9, 21, 0.1); /* Soft red glow */
    }

    /* Custom Checkbox */
    .form-check-input:checked {
        background-color: var(--rfs-red);
        border-color: var(--rfs-red);
    }

    /* 5. Buttons & Links */
    .btn-rfs {
        background-color: var(--rfs-red);
        border: none;
        color: white;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1rem;
        width: 100%;
        transition: background-color 0.2s;
        margin-top: 10px;
    }

    .btn-rfs:hover {
        background-color: #a80610; /* Darker red on hover */
        color: white;
    }

    .forgot-link {
        font-size: 0.85rem;
        color: var(--rfs-grey);
        text-decoration: none;
        transition: color 0.2s;
    }

    .forgot-link:hover {
        color: var(--rfs-red);
    }
    
    .footer-copy {
        text-align: center;
        font-size: 0.8rem;
        color: #999;
    }
    .text-left{
        text-align: left !important;
    }

  