/* ==========================================================================
   NPK HRIS Futuristic Auth UI/UX Design System
   Color Palette: NPK Deep Forest Green (#1c532b, #1b5e20), Emerald (#00e676),
                  Cyber Dark (#07120a, #0b1c11)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --npk-green-dark: #07140b;
    --npk-green-base: #1c532b;
    --npk-green-mid: #2e7d32;
    --npk-green-emerald: #00e676;
    --npk-green-glow: rgba(0, 230, 118, 0.4);
    --npk-mint: #a7f3d0;
    --npk-card-bg: rgba(10, 26, 16, 0.72);
    --npk-input-bg: rgba(5, 15, 9, 0.75);
    --npk-border: rgba(0, 230, 118, 0.22);
    --npk-text-main: #f0fdf4;
    --npk-text-muted: #94a3b8;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-cyber: 'Space Grotesk', monospace;
}

body.login-page {
    background-color: var(--npk-green-dark);
    font-family: var(--font-heading);
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: var(--npk-text-main);
}

/* --------------------------------------------------------------------------
   Futuristic Dynamic Background Effects
   -------------------------------------------------------------------------- */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 20%, rgba(28, 83, 43, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 230, 118, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(7, 20, 11, 0.95) 0%, #040905 100%);
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 230, 118, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 230, 118, 0.04) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
}

/* Floating Animated Energy Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-1 {
    width: 320px;
    height: 320px;
    background: #1c532b;
    top: -80px;
    left: -80px;
}
.orb-2 {
    width: 280px;
    height: 280px;
    background: #00e676;
    bottom: -60px;
    right: -60px;
    animation-delay: -9s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(-40px, 80px) scale(0.9); }
}

/* --------------------------------------------------------------------------
   Auth Container & Glass Card
   -------------------------------------------------------------------------- */
.auth-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 24px 16px;
    box-sizing: border-box;
}

.auth-card {
    background: var(--npk-card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--npk-border);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 230, 118, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 230, 118, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Futuristic Glowing Top Bar & Cyber Accents */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--npk-green-base), var(--npk-green-emerald), var(--npk-green-base), transparent);
}

.cyber-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--npk-green-emerald);
    border-style: solid;
    opacity: 0.7;
    pointer-events: none;
}
.corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* --------------------------------------------------------------------------
   Logo Header & Branding
   -------------------------------------------------------------------------- */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid var(--npk-green-emerald);
    border-radius: 16px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 230, 118, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logo-container:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 230, 118, 0.5);
}

.auth-logo-img {
    max-height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 6px 0 4px 0;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--npk-mint);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-cyber);
    opacity: 0.9;
}

.auth-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    font-size: 10px;
    font-family: var(--font-cyber);
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--npk-green-emerald);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 20px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Input Fields & Icons
   -------------------------------------------------------------------------- */
.form-group-futuristic {
    margin-bottom: 20px;
    position: relative;
}

.form-group-futuristic label {
    display: block;
    font-size: 12px;
    font-family: var(--font-cyber);
    font-weight: 600;
    color: #a7f3d0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: var(--npk-green-emerald);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.form-control-futuristic {
    width: 100%;
    background: var(--npk-input-bg);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 12px;
    padding: 13px 16px 13px 42px;
    font-size: 14px;
    color: #ffffff;
    font-family: var(--font-heading);
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.form-control-futuristic::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

.form-control-futuristic:focus {
    outline: none;
    background: rgba(6, 22, 12, 0.9);
    border-color: var(--npk-green-emerald);
    box-shadow: 
        0 0 0 3px rgba(0, 230, 118, 0.2),
        0 0 15px rgba(0, 230, 118, 0.3);
    color: #ffffff;
}

.form-control-futuristic:focus + .input-icon-left,
.input-with-icon:focus-within .input-icon-left {
    color: #ffffff;
    filter: drop-shadow(0 0 5px var(--npk-green-emerald));
}

.form-control-futuristic.is-invalid {
    border-color: #ff5252;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

.invalid-feedback-futuristic {
    display: block;
    color: #ff8a8a;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 4px;
}

/* Password Show/Hide Toggle */
.btn-password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--npk-text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 3;
}

.btn-password-toggle:hover {
    color: var(--npk-green-emerald);
}

/* --------------------------------------------------------------------------
   Checkbox & Form Options
   -------------------------------------------------------------------------- */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.custom-checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--npk-text-main);
}

.custom-checkbox-container input[type="checkbox"] {
    accent-color: var(--npk-green-emerald);
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--npk-mint);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px dashed transparent;
}

.forgot-password-link:hover {
    color: var(--npk-green-emerald);
    border-bottom-color: var(--npk-green-emerald);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn-futuristic {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1c532b 0%, #2e7d32 60%, #00e676 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-cyber);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 230, 118, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-futuristic::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.6s ease;
}

.btn-futuristic:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 230, 118, 0.5);
    background: linear-gradient(135deg, #236937 0%, #358d39 60%, #15fb89 100%);
}

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

.btn-futuristic:active {
    transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Alerts & Notifications
   -------------------------------------------------------------------------- */
.alert-futuristic {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid var(--npk-green-emerald);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.alert-futuristic-danger {
    background: rgba(255, 82, 82, 0.15);
    border-color: #ff5252;
    color: #ffebee;
}

/* --------------------------------------------------------------------------
   Footer Navigation Links
   -------------------------------------------------------------------------- */
.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 230, 118, 0.15);
    text-align: center;
    font-size: 13px;
    color: var(--npk-text-muted);
}

.auth-footer a {
    color: var(--npk-green-emerald);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--npk-green-emerald);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .auth-title {
        font-size: 20px;
    }
}
