/* Extracted login page styles (moved from login.html)
   - Keeps all visual styles for the login page header, form, and responsive rules
   - Font imports retained for the logo
*/

/* Custom Font Import */
@font-face {
    font-family: 'IncompleetaLightWhite';
    src: url('/assets/IncompleetaLight-white.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --header-text: #111827;
    --accent: #004080;
}

/* Navbar / header */
.navbar {
  background: linear-gradient(180deg, var(--nav-bg), rgba(255,255,255,0.96));
  color: var(--nav-text);
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 24px rgba(2,6,23,0.06);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.navbar-left { display:flex; align-items:center; gap:16px; }
.navbar-logo { display: flex; align-items: center; }
.logo-link { text-decoration: none; display: block; }

.logo-3d {
    display: flex;
    align-items: baseline;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.logo-3d:hover {
    transform: rotateY(5deg) rotateX(2deg);
}

.logo-text {
    color: var(--header-text, #000);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.03), 4px 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateZ(20px);
    transition: all 0.3s ease;
    font-family: 'IncompleetaLightWhite', 'Montserrat', sans-serif;
}

.logo-text.logo-white {
    color: #fff;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.25), 4px 4px 8px rgba(0, 0, 0, 0.45);
}

.logo-text.logo-black {
    color: #000;
    text-shadow: none;
}

.logo-text.logo-theme {
    color: var(--header-text, #000);
}

.logo-font {
    font-family: 'IncompleetaLightWhite', 'Montserrat', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    display: inline-block;
    line-height: 1;
    color: inherit;
}

.logo-accent {
    color: #004080;
    margin-left: 0.2em;
    font-weight: 600;
    text-shadow: 1px 1px 0px #0ea5a4, 2px 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.logo-3d:hover .logo-text {
    text-shadow: 3px 3px 0px #004080, 6px 6px 12px rgba(0, 0, 0, 0.4);
    transform: translateZ(30px);
}

.logo-3d:hover .logo-accent {
    text-shadow: 2px 2px 0px #0ea5a4, 4px 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
}

:root{ --nav-accent: #0ea5a4; --nav-bg: rgba(255,255,255,0.98); --nav-text:#0b1011; }

.navbar-menu { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; align-items:center; }
.navbar-menu > li { position: relative; font-size: 1rem; font-weight: 600; }
.navbar-menu > li a { color: rgba(11,16,17,0.9); text-decoration:none; padding:8px 0; display:inline-block; transition: color .18s ease; }
.navbar-menu > li a::after { content:''; display:block; height:3px; width:0; background:var(--nav-accent); transition: width .22s ease; border-radius:2px; margin-top:6px; }
.navbar-menu > li a:hover { color: rgba(11,16,17,1); }
.navbar-menu > li a:hover::after, .navbar-menu > li a.active::after { width:100%; }
.navbar-right { display:flex; align-items:center; gap:14px; }
.contact-cta { background:var(--nav-accent); color: #fff; padding:10px 14px; border-radius:8px; text-decoration:none; font-weight:700; transition: transform .15s ease, box-shadow .15s ease; border:none; cursor:pointer; font-size:inherit; }
.contact-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(14,165,164,0.14); }

/* burger */
.navbar-burger { background:transparent; border:none; width:44px; height:44px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.burger { width:22px; height:2px; background: #0b1011; position:relative; display:inline-block; transition: all .25s ease; }
.burger::before, .burger::after{ content:''; position:absolute; left:0; width:100%; height:2px; background:#0b1011; transition: all .25s ease; }
.burger::before{ top:-7px; }
.burger::after{ top:7px; }
.burger.open{ background:transparent; }
.burger.open::before{ transform: translateY(7px) rotate(45deg); }
.burger.open::after{ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px){
  .navbar { padding: 0.8rem 1rem; }
  .logo-3d { font-size: 1.5rem; }
  .navbar-menu{ display:none; position:fixed; inset:65px 10px auto 10px; background: linear-gradient(180deg, #fff, #fff); border-radius:12px; padding:20px; flex-direction:column; gap:15px; box-shadow: 0 12px 40px rgba(2,6,23,0.12); max-height: calc(100vh - 100px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .navbar-menu.open{ display:flex; }
  .navbar-right{ display:none; }
  .navbar-menu > li { font-size: 1.1em; padding: 8px 0; }
  .navbar-menu > li a { padding: 12px 0; }
  .mobile-contact { margin-top: 10px; }
  .contact-cta-mobile { background:var(--nav-accent); color: #fff; padding:12px 20px; border-radius:8px; border:none; font-weight:700; cursor:pointer; font-size:1em; width:100%; transition: transform .15s ease, box-shadow .15s ease; }
  .contact-cta-mobile:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14,165,164,0.14); }
  /* overlay to dim background */
  .navbar-menu.open::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9997; }
  /* prevent body scroll when menu open */
  body.no-scroll { height: 100vh; overflow: hidden; }
  /* hide desktop contact button on mobile */
  .navbar-right { display: none !important; }
}

@media (max-width: 480px) { .navbar { padding: 0.6rem 0.8rem; } .logo-3d { font-size: 1.3rem; } .navbar-menu{ inset:60px 8px auto 8px; padding:16px; gap:12px; } .navbar-menu > li { font-size: 1em; } }


.logo-link { filter: drop-shadow(0 6px 8px rgba(0,0,0,0.10)); }

.job-search-btn { display: flex; align-items: center; gap: 8px; padding: 8px 20px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; border: none; border-radius: 6px; font-weight: 500; text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.job-search-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3); color: white; }

/* Body and Main Content with Split Screen Design */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: calc(100vh - 70px);
    /* position: relative; */
}

/* Decorative Background Elements */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
    z-index: 0;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #f5f5ff;
    z-index: 0;
}

/* ── White Side Animated Layer ── */
.white-side-animated {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Shifting aurora gradient that actually moves */
.white-side-animated::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 60% 50%,
        #c8d8ff 0deg,
        #e8c8ff 60deg,
        #ffd6f0 120deg,
        #c8eeff 180deg,
        #d0f0e8 240deg,
        #e0d8ff 300deg,
        #c8d8ff 360deg
    );
    opacity: 0.45;
    animation: auroraRotate 12s linear infinite;
}

/* Second overlay for depth */
.white-side-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.7) 0%,
        rgba(245,245,255,0.3) 50%,
        rgba(255,255,255,0.7) 100%
    );
}

@keyframes auroraRotate {
    from { transform: rotate(0deg);   }
    to   { transform: rotate(360deg); }
}

/* Animated blobs inside white side */
.ws-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    mix-blend-mode: multiply;
    animation: blobPulse ease-in-out infinite alternate;
}

.ws-blob-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #a8c0ff 0%, #c8a0ff 100%);
    top: -60px;
    right: 5%;
    opacity: 0.5;
    animation-duration: 7s;
    animation-delay: 0s;
}
.ws-blob-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #ffa8d0 0%, #a8d8ff 100%);
    top: 40%;
    right: 20%;
    opacity: 0.4;
    animation-duration: 9s;
    animation-delay: 2s;
}
.ws-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #b8f0d8 0%, #b8c8ff 100%);
    bottom: -80px;
    right: 0%;
    opacity: 0.45;
    animation-duration: 11s;
    animation-delay: 4s;
}

@keyframes blobPulse {
    0%   { transform: translate(0px,   0px)  scale(1);    }
    33%  { transform: translate(25px, -20px) scale(1.12); }
    66%  { transform: translate(-15px, 30px) scale(0.92); }
    100% { transform: translate(20px,  10px) scale(1.06); }
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem 2.5rem;
    position: relative;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 0.5rem;
    display: none;
}

.mandatory-note {
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}

/* Form Styling */
.login-form { width: 100%; }

/* Form Group with Proper Alignment */
.form-group-aligned {
    margin-bottom: 1.5rem;
}

.form-label-aligned {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

.required-star {
    color: #dc3545;
    margin-left: 2px;
}

.input-group-aligned {
    width: 100%;
    position: relative;
}

.form-input-aligned {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input-aligned:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input-aligned::placeholder {
    color: #999;
    font-size: 0.95rem;
}

/* Password Toggle */
.password-toggle-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #6c757d; cursor: pointer; padding: 4px; }

/* Forgot Links */
.forgot-links { display: flex; justify-content: space-between; margin: 1.5rem 0; }
.forgot-link { color: var(--primary-color); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.forgot-link:hover { color: var(--secondary-color); text-decoration: underline; }

/* Login Button */
.login-btn-main {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem 0 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.login-btn-main:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .main-content::before,
    .main-content::after {
        width: 100%;
        height: 50%;
    }
    
    .main-content::before {
        bottom: auto;
    }
    
    .main-content::after {
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .modern-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .forgot-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .login-container {
        max-width: 100%;
    }
}

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease-out; }

/* Animated Background Particles */
.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    animation: floatUp linear infinite;
    bottom: -200px;
}

.bg-particles span:nth-child(1)  { width: 80px;  height: 80px;  left: 8%;  animation-duration: 9s;  animation-delay: 0s;   background: rgba(255,255,255,0.10); }
.bg-particles span:nth-child(2)  { width: 22px;  height: 22px;  left: 18%; animation-duration: 13s; animation-delay: 2s;   background: rgba(255,255,255,0.15); }
.bg-particles span:nth-child(3)  { width: 55px;  height: 55px;  left: 30%; animation-duration: 11s; animation-delay: 4s;   background: rgba(118, 75, 162, 0.25); }
.bg-particles span:nth-child(4)  { width: 35px;  height: 35px;  left: 50%; animation-duration: 7s;  animation-delay: 0.5s; background: rgba(255,255,255,0.12); }
.bg-particles span:nth-child(5)  { width: 110px; height: 110px; left: 62%; animation-duration: 12s; animation-delay: 3s;   background: rgba(102, 126, 234, 0.18); }
.bg-particles span:nth-child(6)  { width: 28px;  height: 28px;  left: 72%; animation-duration: 8s;  animation-delay: 1s;   background: rgba(255,255,255,0.15); }
.bg-particles span:nth-child(7)  { width: 85px;  height: 85px;  left: 83%; animation-duration: 14s; animation-delay: 5s;   background: rgba(255,255,255,0.07); }
.bg-particles span:nth-child(8)  { width: 45px;  height: 45px;  left: 3%;  animation-duration: 6s;  animation-delay: 1.5s; background: rgba(118, 75, 162, 0.20); }
.bg-particles span:nth-child(9)  { width: 18px;  height: 18px;  left: 92%; animation-duration: 15s; animation-delay: 2.5s; background: rgba(255,255,255,0.18); }
.bg-particles span:nth-child(10) { width: 65px;  height: 65px;  left: 42%; animation-duration: 10s; animation-delay: 6s;   background: rgba(102, 126, 234, 0.15); }

@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg)   scale(1);    opacity: 0.9; }
    50%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(720deg) scale(0.4); opacity: 0; }
}

/* Glowing orbs on white side — right 50% area only */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: orbDrift ease-in-out infinite;
}

.bg-orb-1 {
    width: 260px;
    height: 260px;
    right: 8%;
    top: 10%;
    background: radial-gradient(circle, rgba(102,126,234,0.22) 0%, transparent 70%);
    animation-duration: 11s;
    animation-delay: 0s;
}
.bg-orb-2 {
    width: 180px;
    height: 180px;
    right: 28%;
    top: 55%;
    background: radial-gradient(circle, rgba(118,75,162,0.20) 0%, transparent 70%);
    animation-duration: 14s;
    animation-delay: 3s;
}
.bg-orb-3 {
    width: 320px;
    height: 320px;
    right: 3%;
    bottom: 8%;
    background: radial-gradient(circle, rgba(200,180,255,0.18) 0%, transparent 70%);
    animation-duration: 17s;
    animation-delay: 6s;
}
.bg-orb-4 {
    width: 140px;
    height: 140px;
    right: 40%;
    top: 20%;
    background: radial-gradient(circle, rgba(102,126,234,0.15) 0%, transparent 70%);
    animation-duration: 9s;
    animation-delay: 1.5s;
}

@keyframes orbDrift {
    0%   { transform: translate(0px, 0px)   scale(1);   }
    25%  { transform: translate(30px, -25px) scale(1.08); }
    50%  { transform: translate(-20px, 30px) scale(0.94); }
    75%  { transform: translate(25px, 15px)  scale(1.05); }
    100% { transform: translate(0px, 0px)   scale(1);   }
}

.form-input-aligned.error { border-color: var(--danger-color); }
.error-message { color: var(--danger-color); font-size: 0.85rem; margin-top: 0.25rem; text-align: left; display: none; }
.loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8); /* Temporarily darker for testing */
            backdrop-filter: blur(2px);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }