/* Staff Login - CSS */

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

/* Main Container */
.container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 2;
}

/* Left Image Section */
.image-section {
    flex: 1;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.brand-info {
    color: white;
    text-align: center;
    max-width: 450px;
    position: relative;
    z-index: 2;
    animation: fadeInLeft 0.8s ease-out;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-section i {
    font-size: 2.5rem;
    margin-right: 12px;
    color: white;
}

.brand-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-info h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #b8d4ff;
}

.brand-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Features Section */
.features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.feature-item svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    color: white;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Right Form Section */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    padding: 20px;
    position: relative;
    z-index: 3;
}

/* Animated Bubbles - Full Page */
.bubble {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.bubble:nth-child(1) {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    z-index: 4;
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header i {
    font-size: 2.2rem;
    color: #1e3c72;
    margin-bottom: 12px;
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 6px;
}

.login-header p {
    color: #666;
    font-size: 0.85rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1e3c72;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: left;
}

.input-container {
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-container input:focus {
    outline: none;
    border-color: #1e3c72;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #1e3c72;
    border-color: #1e3c72;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Submit Button */
.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.error-message {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideIn 0.3s ease-out;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container { flex-direction: column; }
    .image-section { min-height: 40vh; }
    .features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 768px) {
    .features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .back-button { top: 15px; left: 15px; }
    .back-button button { padding: 8px 15px; font-size: 12px; }
    .image-section { min-height: 35vh; }
    .login-header h1 { font-size: 1.4rem; }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}