/* Styles for login: moved out of the template inline <style> block(s). */

  
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: linear-gradient(to bottom right, #1a2a44, #2e4372);
      min-height: 100vh;
      padding: 15px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Navbar - Compact */
    .navbar {
      background-color: #ffffff;
      padding: 10px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e0e0e0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      max-width: 1200px;
      margin: 0 auto 20px;
      border-radius: 8px;
    }

    .navbar-brand {
      font-weight: bold;
      font-size: 22px;
      color: #2e4372;
      text-decoration: none;
    }

    .home-btn {
      padding: 8px 16px;
      border: 2px solid #2e4372;
      border-radius: 25px;
      background-color: transparent;
      color: #2e4372;
      font-weight: 600;
      text-decoration: none;
      transition: 0.3s ease;
      font-size: 14px;
    }

    .home-btn:hover {
      background-color: #2e4372;
      color: #fff;
    }

    .container {
      max-width: 420px;
      margin: 0 auto;
      padding: 28px 32px;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      animation: fadeInUp 0.5s ease-out;
    }

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

    .logo {
      display: block;
      margin: 0 auto 16px;
      height: 45px;
    }

    h2 {
      text-align: center;
      color: #1a2a44;
      font-size: 24px;
      margin-bottom: 4px;
      font-weight: 700;
    }

    .welcome-subtitle {
      text-align: center;
      color: #666;
      font-size: 13px;
      margin-bottom: 20px;
      font-weight: 400;
      line-height: 1.4;
    }

    /* Messages - Compact */
    .alert {
      padding: 10px 12px;
      border-radius: 6px;
      margin-bottom: 14px;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .alert-success {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }

    .alert-error {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    .alert-info {
      background-color: #d1ecf1;
      color: #0c5460;
      border: 1px solid #bee5eb;
    }

    /* Form Groups - Compact */
    .form-group {
      margin-bottom: 14px;
    }

    .form-group label {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
      font-weight: 600;
      color: #1a2a44;
      font-size: 13px;
    }

    .label-icon {
      font-size: 14px;
      opacity: 0.7;
    }

    .form-group label.required::after {
      content: " *";
      color: #dc3545;
    }

    .input-wrapper {
      position: relative;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input.form-control {
      width: 100%;
      padding: 11px 38px 11px 14px;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 14px;
      transition: all 0.3s ease;
      box-sizing: border-box;
      background-color: #fafafa;
    }

    input:focus {
      outline: none;
      border-color: #2e4372;
      background-color: #ffffff;
      box-shadow: 0 0 0 3px rgba(46, 67, 114, 0.1);
    }

    input::placeholder {
      color: #999;
    }

    input.error {
      border-color: #dc3545;
    }

    .password-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: #666;
      font-size: 18px;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
    }

    .password-toggle:hover {
      color: #2e4372;
    }

    .errorlist {
      list-style: none;
      padding: 0;
      margin: 6px 0 0 0;
    }

    .errorlist li {
      color: #dc3545;
      font-size: 11px;
      margin-top: 3px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .errorlist li::before {
      content: "⚠";
      font-size: 14px;
    }

    .helptext {
      display: block;
      font-size: 11px;
      color: #666;
      margin-top: 4px;
      line-height: 1.3;
    }

    button[type="submit"] {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #2e4372 0%, #1a2a44 100%);
      border: none;
      color: #fff;
      border-radius: 6px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 8px;
      box-shadow: 0 4px 12px rgba(46, 67, 114, 0.3);
      position: relative;
      overflow: hidden;
    }

    button[type="submit"]:hover {
      background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
      box-shadow: 0 6px 16px rgba(46, 67, 114, 0.4);
      transform: translateY(-2px);
    }

    button[type="submit"]:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(46, 67, 114, 0.3);
    }

    .footer-link {
      text-align: center;
      margin-top: 20px;
      font-size: 13px;
      color: #ffffff;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 6px;
      backdrop-filter: blur(10px);
    }

    .footer-link a {
      color: #f0c14b;
      text-decoration: none;
      font-weight: 600;
      margin-left: 4px;
      transition: all 0.3s ease;
      display: inline-block;
      font-size: 13px;
    }

    .footer-link a:hover {
      color: #ffd700;
      text-decoration: underline;
      transform: translateX(2px);
    }

    .forgot-password-link {
      text-align: center;
      margin-top: 12px;
      padding: 8px;
      background: #f8f9fa;
      border-radius: 6px;
      transition: all 0.3s ease;
    }

    .forgot-password-link:hover {
      background: #e9ecef;
    }

    .forgot-password-link a {
      color: #2e4372;
      text-decoration: none;
      font-size: 12px;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.3s ease;
    }

    .forgot-password-link a:hover {
      color: #1a2a44;
      gap: 8px;
    }

    .forgot-password-link a::before {
      content: "🔑";
      font-size: 16px;
    }

    /* CAPTCHA Styles - Compact */
    .captcha-image {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }

    .captcha-refresh-button {
      padding: 8px 12px;
      border: none;
      background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
      border-radius: 6px;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .captcha-refresh-button:hover {
      background: linear-gradient(135deg, #2e4372 0%, #1a2a44 100%);
      color: white;
      transform: rotate(180deg);
      box-shadow: 0 4px 8px rgba(46, 67, 114, 0.3);
    }

    /* Google Sign In Button - Compact */
    .google-signin-btn {
      width: 100%;
      padding: 11px;
      background: white;
      color: #1a2a44;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.3s ease;
      margin-top: 0;
      text-decoration: none;
      box-sizing: border-box;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .google-signin-btn:hover {
      border-color: #4285f4;
      box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
      transform: translateY(-2px);
      background: #f8f9ff;
    }

    .google-signin-info {
      margin-top: 12px;
      padding: 10px 12px;
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border: 1px dashed #dee2e6;
      border-radius: 6px;
      text-align: center;
      color: #495057;
      font-size: 11px;
      line-height: 1.4;
    }

    .google-signin-info strong {
      color: #1a2a44;
      font-size: 12px;
      display: block;
      margin-bottom: 4px;
    }

    .google-signin-info small {
      color: #6c757d;
      display: block;
      margin-top: 2px;
      font-size: 10px;
    }

    .google-signin-info::before {
      content: "";
      display: none;
    }

    .google-icon {
      width: 20px;
      height: 20px;
      background: conic-gradient(from 0deg, #ea4335 0deg 90deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg 360deg);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      font-size: 12px;
    }

    .divider {
      margin: 14px 0;
      text-align: center;
      position: relative;
    }

    .divider::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      border-top: 1px solid #ddd;
    }

    .divider span {
      background: #ffffff;
      padding: 0 12px;
      position: relative;
      color: #666;
      font-size: 12px;
    }

    /* Premium Mobile Responsive Styles */
    @media (max-width: 768px) {
      body {
        padding: 15px;
      }
      
      .navbar {
        padding: 10px 15px;
        margin-bottom: 20px;
      }
      
      .navbar-brand {
        font-size: 18px;
      }
      
      .home-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 44px; /* Touch-friendly */
      }
      
      .container {
        padding: 30px 25px;
        max-width: 100%;
      }
      
      .logo {
        height: 50px;
        margin-bottom: 20px;
      }
      
      h2 {
        font-size: 22px;
        margin-bottom: 25px;
      }
      
      .form-group input,
      .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly */
      }
      
      .btn-primary,
      .btn-google {
        min-height: 48px; /* Touch-friendly */
        font-size: 16px;
      }
    }
    
    @media (max-width: 480px) {
      body {
        padding: 10px;
      }
      
      .container {
        padding: 25px 20px;
      }

      .navbar {
        padding: 10px 15px;
      }
      
      .navbar-brand {
        font-size: 16px;
      }
      
      .home-btn {
        padding: 6px 10px;
        font-size: 11px;
      }
      
      h2 {
        font-size: 20px;
      }
    }
    
    @media (max-width: 320px) {
      body {
        padding: 8px;
      }
      
      .container {
        padding: 20px 15px;
      }
      
      .navbar {
        padding: 8px 12px;
      }
    }
  
