/* ===================================
   STAFF LOGIN PAGE - RESPONSIVE DESIGN
   ==================================== */

:root {
    --staff-primary: #4CAF50;
    --staff-primary-dark: #358a3f;
    --staff-primary-light: #81C784;
    --danger: #F44336;
    --success: #4CAF50;
    --warning: #FF9800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Staff Login Section */
.staff-login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.staff-login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" fill-opacity="1" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,112C672,128,768,192,864,197.3C960,203,1056,149,1152,138.7C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 0;
}

/* Login Card Container */
.staff-login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.5s ease-out;
}

/* Logo and Header */
.staff-login-header {
    margin-bottom: 30px;
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.staff-login-logo {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.2));
}

.staff-login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--staff-primary);
    margin: 15px 0 5px 0;
    letter-spacing: -0.5px;
}

.staff-login-subtitle {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Form Styling */
.staff-login-form {
    margin: 30px 0;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label i {
    color: var(--staff-primary);
    font-size: 16px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--staff-primary);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: #999;
}

/* Buttons */
.btn-staff-primary {
    background: var(--staff-primary);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-staff-primary:hover {
    background: var(--staff-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.btn-staff-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease-out;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.alert i {
    font-size: 18px;
}

/* Footer Links */
.staff-login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.staff-login-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

.staff-link {
    color: var(--staff-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 4px;
}

.staff-link:hover {
    color: var(--staff-primary-dark);
    text-decoration: underline;
    transform: translateX(2px);
}

.staff-link-secondary {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.staff-link-secondary:hover {
    color: var(--staff-primary);
    text-decoration: underline;
}

hr {
    opacity: 0.5;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablets (Portrait) */
@media (max-width: 768px) {
    .staff-login-card {
        padding: 30px 25px;
    }

    .staff-login-title {
        font-size: 24px;
    }

    .staff-login-logo {
        max-width: 70px;
    }

    .form-control-lg {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile Devices (Landscape) */
@media (max-width: 576px) {
    .staff-login-section {
        padding: 15px;
    }

    .staff-login-card {
        padding: 25px 20px;
        border-radius: 10px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    .staff-login-title {
        font-size: 22px;
        margin-bottom: 3px;
    }

    .staff-login-subtitle {
        font-size: 12px;
    }

    .login-logo-wrapper {
        margin-bottom: 15px;
    }

    .staff-login-logo {
        max-width: 65px;
    }

    .staff-login-header {
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }

    .form-control-lg {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 11px 20px;
        font-size: 13px;
    }

    .staff-login-footer {
        margin-top: 20px;
        padding-top: 15px;
    }

    .staff-login-footer p {
        font-size: 12px;
    }

    .alert {
        padding: 12px 15px;
        font-size: 13px;
        margin-bottom: 20px;
    }

    .alert i {
        font-size: 16px;
        min-width: 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .staff-login-card {
        padding: 20px 15px;
    }

    .staff-login-title {
        font-size: 20px;
    }

    .staff-login-subtitle {
        font-size: 11px;
    }

    .login-logo-wrapper {
        margin-bottom: 12px;
    }

    .staff-login-logo {
        max-width: 60px;
    }

    .form-label {
        font-size: 12px;
    }

    .form-control {
        padding: 9px 11px;
        font-size: 13px;
    }

    .form-control::placeholder {
        font-size: 12px;
    }

    .btn-lg {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .staff-login-card {
        padding: 50px;
        border-radius: 14px;
    }

    .staff-login-title {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .staff-login-logo {
        max-width: 90px;
    }

    .form-control {
        padding: 13px 18px;
        font-size: 15px;
    }

    .btn-lg {
        padding: 13px 25px;
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .staff-login-section {
        background: white;
    }

    .staff-login-background {
        display: none;
    }

    .staff-login-card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: more) {
    .staff-login-card {
        border: 2px solid var(--staff-primary);
    }

    .btn-staff-primary {
        border: 2px solid var(--staff-primary);
    }

    .form-control:focus {
        border-width: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #ffffff;
    }

    .staff-login-card {
        background: #2d2d2d;
        color: #ffffff;
    }

    .staff-login-title {
        color: var(--staff-primary-light);
    }

    .staff-login-subtitle {
        color: #999;
    }

    .form-label {
        color: #ffffff;
    }

    .form-control {
        background: #3a3a3a;
        border-color: #555;
        color: #ffffff;
    }

    .form-control::placeholder {
        color: #777;
    }

    .staff-login-footer {
        border-color: #555;
    }

    .staff-login-footer p {
        color: #999;
    }

    hr {
        border-color: #555;
    }
}
