/* =========================================================
   login.css — LocoSave Pro
   ========================================================= */

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

:root {
    --primary:       #4a90e2;
    --secondary:     #50c878;
    --dark:          #1a1a2e;
    --glass-bg:      rgba(255, 255, 255, 0.13);
    --glass-border:  rgba(255, 255, 255, 0.28);
    --glass-shadow:  0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --card-radius:   28px;
}

/* ── Base ─────────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: var(--dark);
}

/* ── Full-screen video background ────────────────────── */
.video-background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-background .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(26, 26, 46, 1) 100%);
}

/* ── Page wrapper ─────────────────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* ── Outer card (desktop two-column shell) ────────────── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    border-radius: var(--card-radius);
    overflow: hidden;
    animation: cardFadeIn 0.65s ease both;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 32px 80px rgba(0,0,0,0.55);
}

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

/* ── LEFT — image panel ───────────────────────────────── */
.card-left {
    flex: 0 0 44%;
    position: relative;
    overflow: hidden;
    padding: 10px 0 10px 10px;
    background: rgba(26, 26, 46, 0.6);
}

.card-image {
    width: 98%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    display: block;
    /* animation: zoomEffect 20s infinite alternate; */
}

/* @keyframes zoomEffect {
    from { transform: scale(1);    }
    to   { transform: scale(1.07); }
} */

/* ── RIGHT — glassmorphism login panel ───────────────── */
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Glassmorphism */
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);

    /* Strong box-shadow — makes the glass pop off the image */
    box-shadow:
        inset -1px 0 0 rgba(255,255,255,0.08),
        -10px 0 50px rgba(0, 0, 0, 0.4),
          8px 0 40px rgba(74, 144, 226, 0.18),
          0   0 60px rgba(80, 200, 120, 0.1);

    padding: 2.8rem 2.5rem;
    position: relative;
}

/* ── Logo ─────────────────────────────────────────────── */
.login-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.8rem;
    justify-content: center;
}

.login-logo i {
    font-size: 2.6rem;
    color: var(--secondary);
    filter: drop-shadow(0 0 10px rgba(80,200,120,0.5));
}

.login-logo span {
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ── Tab Switcher ─────────────────────────────────────── */
.tab-switcher {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    flex: 1;
    padding: 0.7rem 0.8rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.28s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.tab-btn i { font-size: 1rem; }

.tab-btn.active {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 14px rgba(80,200,120,0.4);
}

/* ── Welcome ──────────────────────────────────────────── */
.welcome-message {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(80,200,120,0.15);
    border-radius: 14px;
    border-left: 4px solid var(--secondary);
    backdrop-filter: blur(5px);
}

.welcome-message i {
    color: var(--secondary);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(80,200,120,0.5));
}

.welcome-message span {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ── Form ─────────────────────────────────────────────── */
.login-form { margin-bottom: 0.5rem; }

.input-group {
    position: relative;
    margin-bottom: 1.3rem;
}

.input-group input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 3rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.28s ease;
    backdrop-filter: blur(5px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.16);
    box-shadow: 0 0 0 4px rgba(80,200,120,0.2);
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(80,200,120,0.3));
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.25s;
}

.password-toggle:hover { color: var(--secondary); }

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}

.remember-me input {
    accent-color: var(--secondary);
    width: 15px;
    height: 15px;
}

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.25s;
}

.forgot-password:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Login Button ─────────────────────────────────────── */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before { left: 100%; }

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(80,200,120,0.45);
}

.login-btn i { transition: transform 0.3s; }
.login-btn:hover i { transform: translateX(5px); }

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

/* ── Modals ───────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.58);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show { display: flex; }

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.modal-header {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 { font-size: 1.2rem; color: #fff; }

.close-modal {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    transition: all 0.25s;
}

.close-modal:hover { color: #ffdddd; transform: scale(1.12); }

.modal-body { padding: 1.4rem; }

/* ── Request Items ────────────────────────────────────── */
.request-item {
    padding: 1.1rem;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fafafa;
    transition: all 0.25s;
}

.request-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.manager-name { font-weight: 600; color: var(--dark); font-size: 1rem; }

.manager-role {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: var(--secondary);
    color: #fff;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 0.4rem;
    text-transform: capitalize;
}

.request-time {
    font-size: 0.77rem;
    color: #999;
    background: #f0f0f0;
    padding: 0.25rem 0.55rem;
    border-radius: 20px;
}

.request-details {
    background: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border-left: 3px solid var(--secondary);
}

.request-details p {
    margin: 0.25rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.request-details i { width: 18px; color: var(--primary); }

.reset-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.reset-actions button {
    flex: 1;
    min-width: 80px;
    padding: 0.55rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.btn-reset  { background: var(--secondary); color: #fff; }
.btn-reset:hover  { background: #3aaa55; transform: translateY(-2px); }

.btn-custom { background: var(--primary); color: #fff; }
.btn-custom:hover { background: #357abd; transform: translateY(-2px); }

.btn-dismiss { background: #f0f0f0; color: #666; }
.btn-dismiss:hover { background: #ff4d4d; color: #fff; transform: translateY(-2px); }

/* ── Password Display ─────────────────────────────────── */
.password-display {
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    text-align: center;
    margin: 1rem 0;
    border: 2px dashed var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--dark);
}

.copy-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.28s;
}

.copy-btn:hover {
    background: #3aaa55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(80,200,120,0.3);
}

/* ── Developer Credit ─────────────────────────────────── */
.developer-credit {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    z-index: 100;
    background: rgba(0,0,0,0.28);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}

.developer-credit a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

.developer-credit a:hover { color: #fff; text-decoration: underline; }

/* ── Animations ───────────────────────────────────────── */
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0);     }
}

/* ── Responsive ───────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 900px) {
    .login-card { max-width: 720px; min-height: unset; }
    .card-left  { flex: 0 0 40%; }
}

/* Tablet portrait — hide image, glass panel floats centered */
@media (max-width: 680px) {
    body { overflow: auto; }

    .page-wrapper {
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 1.5rem 1rem 3.5rem;
    }

    .login-card {
        flex-direction: column;
        max-width: 460px;
        width: 100%;
        min-height: unset;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .card-left { display: none; }

    /* Glass panel is now a standalone centered floating card */
    .card-right {
        border-radius: 28px;
        border: 1px solid var(--glass-border);
        padding: 2.2rem 1.8rem;
        /* Standalone box-shadow */
        box-shadow:
            0 8px 32px rgba(31,38,135,0.37),
            0 24px 64px rgba(0,0,0,0.5),
            0  0  50px rgba(80,200,120,0.1);
    }
}

/* Mobile */
@media (max-width: 420px) {
    .page-wrapper { padding: 1rem 0.75rem 3rem; }

    .card-right { padding: 1.8rem 1.2rem; border-radius: 22px; }

    .login-logo span { font-size: 1.35rem; }
    .login-logo i    { font-size: 2.1rem;  }

    .tab-btn { font-size: 0.84rem; padding: 0.6rem; }

    .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .reset-actions    { flex-direction: column; }
    .modal-content    { max-width: 98%; }
    .developer-credit { font-size: 0.76rem; width: 94%; text-align: center; }
}