/* --- Global Reset & Modern Backdrop --- */
body {
    background-color: #f8fafc; /* Lighter, cleaner grey */
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- The Main Login Card --- */
.container {
    background-color: #fff;
    padding: 0; /* Changed to 0 to let header hit edges */
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
    overflow: hidden; /* Ensures header corners match container */
}

/* --- Brand Header --- */
.card-header {
    background-color: #f84c24; /* Your Brand Color */
    color: #fff;
    padding: 25px 10px;
    text-align: center;
}

.card-header h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-body {
    padding: 30px;
}

/* --- Improved Form Elements --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-control {
    width: 100%; /* Uses full width of container */
    height: 45px;
    padding: 10px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Crucial: prevents width overflow */
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f84c24;
    box-shadow: 0 0 0 3px rgba(248, 76, 36, 0.1);
}

/* --- Branded Button --- */
.btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    background-color: #f84c24;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background-color: #e03d1a; /* Darker version of your brand color */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 76, 36, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.error {
    background-color: #fff5f5;
    color: #c53030;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px solid #feb2b2;
}

/* --- Modernized Notice Modal --- */
.modal-overlay {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9); /* Dark Blue/Slate overlay */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header h2 {
    color: #1a202c;
    font-size: 24px;
    margin-top: 0;
}

.btn-close {
    background-color: #f84c24; /* Changed to match your brand */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.2s;
}

.btn-close:hover {
    background-color: #e03d1a;
}

@keyframes slideIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* 1. Logo Styling */
.brand-logo {
    margin-bottom: 15px;
}
.brand-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white to match header text */
}

/* 2. Focus Animation */
.form-control:focus {
    transform: translateY(-1px); /* Subtly lifts the input on focus */
}

/* 3. Loading State for Button */
.btn.loading {
    background-color: #d63a1a;
    pointer-events: none;
    opacity: 0.8;
}
.btn.loading::after {
    content: "...";
    animation: dots 1s infinite;
}

@keyframes dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* 4. Footer Link (Optional but recommended) */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}