/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header - Exact match to main website */
  header {
    background: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: #667eea;
  }
  
  .user-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
  }
  
  .user-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
    fill: #667eea;
    background: #f3f4f6;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }
  
  .username {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-left: 0.25rem;
  }
  
  /* Main Content */
  .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  /* Login Container */
  .login-container {
    background: #fff;
    border-radius: 20px;
    padding: 48px 36px 36px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(102,126,234,0.10);
    border: 1px solid #e0e7ff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .welcome-title {
    color: #667eea;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -1px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .input-field {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid #e0e7ff;
    border-radius: 12px;
    color: #333;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
  }
  
  .input-field::placeholder {
    color: #94a3b8;
  }
  
  .input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px #c7d2fe;
    background: #fff;
  }
  
  .login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.13);
  }
  
  .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.18);
  }
  
  .login-btn:active {
    transform: translateY(0);
  }
  
  .divider {
    text-align: center;
    margin: 28px 0 18px 0;
    position: relative;
    color: #64748b;
    font-size: 14px;
  }
  
  .divider::before,
  .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e7ff;
  }
  
  .divider::before {
    left: 0;
  }
  
  .divider::after {
    right: 0;
  }
  
  .g_id_signin {
    width: 100% !important;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin-top: 18px;
  }
  
  .footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
  }
  
  footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
  }
  
  footer p {
    color: #94a3b8;
    max-width: 800px;
  }
  
  /* Responsive Design - Match main website */
  @media (max-width: 768px) {
    .nav-links {
      gap: 1rem;
      font-size: 14px;
    }
    .logo {
      font-size: 20px;
    }
    .main-content {
      padding: 20px 0;
    }
    .login-container {
      padding: 32px 10px 24px 10px;
    }
    .welcome-title {
      font-size: 1.5rem;
      margin-bottom: 24px;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 10px;
    }
    .main-content {
      padding: 10px 0;
    }
    .login-container {
      padding: 18px 2px 12px 2px;
    }
    .logo {
      font-size: 18px;
    }
    .username {
      display: none;
    }
  }
  
  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(30, 41, 59, 0.25);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    background: #fff;
    margin: 80px auto 0 auto;
    border-radius: 18px;
    padding: 36px 28px 28px 28px;
    max-width: 370px;
    box-shadow: 0 12px 40px rgba(102,126,234,0.13);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .modal-content h2 {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
  }
  .close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 1.7rem;
    color: #64748b;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s;
  }
  .close:hover {
    color: #667eea;
  }
  /* Show/Hide Password Icon */
  #toggle-password, #toggle-signup-password {
    user-select: none;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    outline: none;
    padding: 0;
  }
  #toggle-password svg, #toggle-signup-password svg {
    display: block;
    pointer-events: none;
  }
  @media (max-width: 480px) {
    .modal-content {
      padding: 18px 4px 12px 4px;
      max-width: 98vw;
    }
  }