/* 
 * Staff Login - Re-designed for Portal Milo 
 * Style: Card-based centered login with background image
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #0f172a url('../images/Wlfbk.jpg') no-repeat center center fixed;
    background-size: cover;
    width: 100% !important;
    min-height: 100vh;
}

/* Main Wrapper - Centered Flex Container */
.staff-login-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darker overlay for better text readability */
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Strictly hide old Hero Section and unneeded elements */
.hero-section,
.hero-overlay,
.feature-grid,
.hero-content {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Content Section */
.login-form-section {
    width: 100% !important;
    max-width: 850px;
    /* Increased broadly */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10;
}

/* Login Card Styling */
.form-container {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 70px 55px;
    border-radius: 36px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.brand-header {
    text-align: center;
    margin-bottom: 60px;
}

.brand-icon {
    width: 120px;
    /* Bigger logo */
    height: 120px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.brand-header h1 {
    font-size: 32px;
    color: #1b5e20;
    margin-bottom: 8px;
    font-weight: 700;
}

.brand-header p {
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 500;
}

.staff-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i.input-icon {
    position: absolute;
    left: 18px;
    color: #2563eb;
    font-size: 18px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 66px;
    padding: 0 20px 0 52px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: -5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.submit-btn {
    height: 68px;
    width: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.role-indicators {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.role-indicators p {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.role-tag {
    padding: 6px 12px;
    background: #f8fafc;
    /* FIXED LINT */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.return-link {
    margin-top: 25px;
    text-align: center;
}

.return-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.return-link a:hover {
    color: #2563eb;
}

/* Animations */
.alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b91c1c;
    font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .form-container {
        padding: 55px 35px;
        max-width: 650px;
        /* Expand a bit on tablet too */
        width: 96% !important;
    }

    .brand-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 45px 25px;
        width: 100% !important;
        border-radius: 20px;
    }

    .brand-icon {
        width: 100px;
        height: 100px;
    }
}
