/* ============================================================
   AQUELA EMPLOYEE LOGIN — STYLESHEET
   ============================================================ */

/* ========== ROOT VARIABLES ========== */
:root {
    --royal-blue: #4169E1;
    --royal-blue-dark: #1E40AF;
    --royal-blue-light: #6495ED;
    --royal-blue-lighter: #A7C7E7;
    --royal-blue-pale: #E6F0FF;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --dark-gray: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --shadow: 0 10px 30px rgba(65, 105, 225, 0.15);
    --transition: all 0.4s ease;
    --border-radius: 16px;
    --gradient-primary: linear-gradient(135deg, #4169E1, #1E40AF);
    --gradient-secondary: linear-gradient(135deg, #6495ED, #4169E1);
    --gradient-gold: linear-gradient(135deg, #FFD700, #DAA520);
    --gradient-light: linear-gradient(135deg, #E6F0FF, #A7C7E7);
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========== WATER DROP ANIMATION ========== */
.water-animation-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.water-drop-login {
    position: absolute;
    background: rgba(65, 105, 225, 0.15);
    border-radius: 50%;
    animation: waterDropFall 8s infinite linear;
}

.drop-login-1 { width: 30px; height: 30px; left: 10%; animation-delay: 0s; }
.drop-login-2 { width: 40px; height: 40px; left: 25%; animation-delay: 1s; }
.drop-login-3 { width: 25px; height: 25px; left: 45%; animation-delay: 2s; }
.drop-login-4 { width: 35px; height: 35px; left: 65%; animation-delay: 3s; }
.drop-login-5 { width: 20px; height: 20px; left: 85%; animation-delay: 4s; }

@keyframes waterDropFall {
    0% {
        top: -50px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========== BACK TO HOME ========== */
.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-to-home a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--royal-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.2);
    transition: var(--transition);
}

.back-to-home a:hover {
    background: var(--royal-blue);
    color: var(--white);
    transform: translateX(-5px);
    box-shadow: 0 8px 22px rgba(65, 105, 225, 0.35);
}

/* ========== EMPLOYEE BADGE ========== */
.employee-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(65, 105, 225, 0.35);
}

.employee-badge i {
    font-size: 0.9rem;
}

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 50px;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.login-content {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(65, 105, 225, 0.2);
    overflow: hidden;
    min-height: 700px;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FORM CONTAINER ========== */
.login-form-container {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 2.5rem;
    color: var(--royal-blue);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--dark-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.login-logo span {
    color: var(--royal-blue);
    font-weight: 300;
}

.login-header {
    margin-bottom: 35px;
    text-align: center;
}

.login-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========== LOGIN METHOD TOGGLE ========== */
.login-method {
    display: flex;
    background: var(--royal-blue-pale);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 25px;
}

.login-method-btn {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
    border-radius: 9px;
    background: transparent;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-method-btn i {
    font-size: 0.85rem;
}

.login-method-btn.active {
    background: var(--white);
    color: var(--royal-blue);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.2);
}

.login-method-btn:not(.active):hover {
    color: var(--royal-blue);
    background: rgba(255, 255, 255, 0.5);
}

/* ========== FORM GROUP ========== */
.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input {
    width: 100%;
    padding: 16px 45px 16px 45px;
    border: 2px solid var(--royal-blue-lighter);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--dark-gray);
    background: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder {
    color: #A0AEC0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.15);
}

.form-group input.error-border {
    border-color: var(--error);
    background: #FEF2F2;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--royal-blue);
    font-size: 1.05rem;
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ .input-icon {
    color: var(--royal-blue-dark);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    transition: var(--transition);
    background: transparent;
    border: none;
}

.password-toggle:hover {
    color: var(--royal-blue);
    background: var(--royal-blue-pale);
}

/* ========== LOGIN OPTIONS ========== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.staff-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--success);
    font-weight: 600;
    background: #D1FAE5;
    padding: 6px 14px;
    border-radius: 50px;
}

.staff-note i {
    font-size: 0.85rem;
}

.forgot-password a {
    color: var(--royal-blue);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--royal-blue);
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(65, 105, 225, 0.35);
    border: 2px solid transparent;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(65, 105, 225, 0.5);
    border-color: var(--white);
}

.btn-primary:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.login-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ========== SPINNER ========== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== LOGIN FOOTER ========== */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--royal-blue-pale);
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.88rem;
    margin: 0;
}

.login-footer a {
    color: var(--royal-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.login-footer a:hover {
    text-decoration: underline;
    color: var(--royal-blue-dark);
}

/* ========== IMAGE CONTAINER ========== */
.login-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--royal-blue), #4a6bff);
    min-height: 700px;
}

.login-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.85), rgba(30, 64, 175, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 2;
}

.image-overlay .overlay-content {
    text-align: center;
    color: var(--white);
    max-width: 340px;
}

.image-overlay .overlay-content i {
    font-size: 4rem;
    margin-bottom: 22px;
    display: inline-block;
    color: var(--gold);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.image-overlay .overlay-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.image-overlay .overlay-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.92;
    font-weight: 400;
}

/* ========== NOTIFICATION SYSTEM ========== */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    max-width: calc(100% - 40px);
    z-index: 9999;
    pointer-events: none;
}

.notification {
    padding: 16px 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    border-left: 4px solid transparent;
}

.notification.success {
    background: linear-gradient(135deg, #10B981, #059669);
    border-left-color: #047857;
}

.notification.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    border-left-color: #B91C1C;
}

.notification.warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-left-color: #B45309;
}

.notification.info {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-left-color: #1E40AF;
}

.notification i.fas:first-child {
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 15px;
}

.notification-message {
    opacity: 0.95;
    word-wrap: break-word;
    font-size: 13px;
}

.notification .fa-times {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification .fa-times:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.notification .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .login-content {
        flex-direction: column;
        min-height: auto;
    }

    .login-image-container {
        display: none;
    }

    .login-form-container {
        padding: 40px 30px;
    }

    .login-header h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 90px 0 30px;
    }

    .login-form-container {
        padding: 30px 22px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .employee-badge {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .employee-badge i {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .login-header h2 {
        font-size: 1.6rem;
    }

    .login-logo h1 {
        font-size: 1.5rem;
    }

    .login-logo i {
        font-size: 2rem;
    }

    .login-form-container {
        padding: 25px 16px;
    }

    .form-group input {
        padding: 14px 40px 14px 40px;
        font-size: 14px;
    }

    .input-icon {
        left: 13px;
        font-size: 0.95rem;
    }

    .password-toggle {
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .login-submit {
        font-size: 0.9rem;
        padding: 14px 20px;
    }

    .back-to-home a {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .employee-badge {
        top: 70px;
        right: 15px;
        padding: 6px 14px;
        font-size: 0.65rem;
    }

    #notification-container {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}