/* 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
*/

: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;
}

/* 3D Background Theme */
body {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    perspective: 1000px;
    margin: 0;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 90%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 30%, rgba(255,255,255,0.08) 0%, transparent 45%),
        linear-gradient(45deg, rgba(255,255,255,0.02) 0%, transparent 25%, transparent 75%, rgba(255,255,255,0.02) 100%),
        linear-gradient(-45deg, rgba(255,255,255,0.01) 0%, transparent 50%, rgba(255,255,255,0.01) 100%);
    background-size: 300px 300px, 400px 400px, 200px 200px, 250px 250px, 350px 350px, 100px 100px, 150px 150px;
    background-position: 0% 0%, 50% 50%, 100% 100%, 25% 75%, 75% 25%, 0% 0%, 50% 50%;
    animation: textureFloat 20s ease-in-out infinite, textureShift 30s linear infinite;
    pointer-events: none;
}

@keyframes textureShift {
    0% { background-position: 0% 0%, 50% 50%, 100% 100%, 25% 75%, 75% 25%, 0% 0%, 50% 50%; }
    100% { background-position: 100% 0%, 150% 50%, 200% 100%, 125% 75%, 175% 25%, 100% 0%, 150% 50%; }
}

@keyframes textureFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 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: #23c1b7; text-shadow: 2px 2px 0px #004080, 4px 4px 8px rgba(0,0,0,0.3); transform: translateZ(20px); transition: all 0.3s ease; }
.logo-accent { color: #07407a; 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; }

/* Main Content */
.main-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }

/* Login Container */
.login-container { width: 100%; max-width: 450px; margin: 0 auto; }
.login-card { background: white; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 50px rgba(0,0,0,0.1); padding: 2.5rem 2.5rem 2.5rem 3.5rem; transform: translateZ(50px); transition: transform 0.3s ease; }
.login-card:hover { transform: translateZ(60px) rotateY(2deg); }

/* Login Header */
.login-header { text-align: center; margin-bottom: 2rem; }
.login-title { color: var(--dark-color); font-weight: 600; font-size: 1.75rem; margin-bottom: 1rem; }
.login-description { color: #6c757d; font-size: 0.95rem; line-height: 1.6; text-align: left; margin-bottom: 1rem; }
.mandatory-note { color: var(--danger-color); font-size: 0.85rem; text-align: left; padding: 8px 12px; background: rgba(247, 37, 133, 0.05); border-radius: 4px; border-left: 3px solid var(--danger-color); margin-bottom: 1.5rem; }

/* 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: var(--dark-color); margin-bottom: 0.5rem; text-align: left; font-size: 0.95rem; }
.required-star { color: var(--danger-color); margin-left: 2px; }
.input-group-aligned { width: 100%; position: relative; }
.form-input-aligned { width: 100%; padding: 12px 16px; border: 1px solid #ced4da; border-radius: 6px; font-size: 1rem; font-family: 'Nunito', sans-serif; transition: var(--transition); background: #fff; }
.form-input-aligned:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1); }

/* 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: 14px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); margin: 1.5rem 0; }
.login-btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3); }

/* Responsive */
@media (max-width: 576px) { .login-card { padding: 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.5rem; } }

/* Animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease-out; }
.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); }
        }