/* Styles for signup: 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: 20px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      overflow-x: hidden;
    }

    /* Navbar */
    .navbar {
      background-color: #ffffff;
      padding: 12px 20px;
      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 30px;
      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: 450px;
      margin: 0 auto;
      padding: 40px;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .logo {
      display: block;
      margin: 0 auto 25px;
      height: 55px;
    }

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

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

    .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 */
    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #1a2a44;
      font-size: 14px;
    }

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

    .input-wrapper {
      position: relative;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input.form-control {
      width: 100%;
      padding: 12px 40px 12px 12px;
      border: 2px solid #ddd;
      border-radius: 6px;
      font-size: 15px;
      transition: border-color 0.3s ease;
      box-sizing: border-box;
    }

    input:focus {
      outline: none;
      border-color: #2e4372;
    }

    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: 13px;
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

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

    .helptext {
      display: block;
      font-size: 12px;
      color: #666;
      margin-top: 6px;
      line-height: 1.4;
    }

    .helptext ul {
      margin: 4px 0;
      padding-left: 20px;
    }

    button[type="submit"] {
      width: 100%;
      padding: 14px;
      background-color: #2e4372;
      border: none;
      color: #fff;
      border-radius: 6px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.3s ease;
      margin-top: 10px;
    }

    button[type="submit"]:hover {
      background-color: #1a2a44;
    }

    button[type="submit"]:active {
      transform: scale(0.98);
    }

    .footer-link {
      text-align: center;
      margin-top: 25px;
      font-size: 15px;
      color: #ffffff;
    }

    .footer-link a {
      color: #f0c14b;
      text-decoration: none;
      font-weight: 600;
      margin-left: 5px;
    }

    .footer-link a:hover {
      text-decoration: underline;
    }

    /* Success indicator */
    .success-indicator {
      text-align: center;
      padding: 20px;
      background-color: #d4edda;
      border: 2px solid #c3e6cb;
      border-radius: 6px;
      color: #155724;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .success-indicator::before {
      content: "✓ ";
      font-size: 20px;
      color: #28a745;
    }

    /* User Type Selection Buttons */
    .user-type-selection {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    .user-type-btn {
      flex: 1;
      padding: 12px 16px;
      border: 2px solid #ddd;
      border-radius: 6px;
      background: white;
      color: #333;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .user-type-btn.active {
      background: #e3f2fd;
      border-color: #1a2a44;
      color: #1a2a44;
    }

    /* Buyer/Seller Selection */
    .role-selection {
      margin-bottom: 20px;
    }

    .role-selection label {
      display: block;
      font-size: 14px;
      color: #1a2a44;
      margin-bottom: 12px;
      font-weight: 600;
    }

    .radio-group {
      display: flex;
      gap: 20px;
    }

    .radio-option {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .radio-option input[type="radio"] {
      width: 18px;
      height: 18px;
      cursor: pointer;
      accent-color: #1a2a44;
    }

    .radio-option label {
      margin: 0;
      cursor: pointer;
      font-weight: 400;
      font-size: 14px;
    }

    /* Google Signup Button */
    .google-signup-btn {
      width: 100%;
      padding: 12px;
      background: white;
      color: #1a2a44;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.3s ease;
      margin-top: 15px;
      text-decoration: none;
      box-sizing: border-box;
    }

    .google-signup-btn:hover {
      border-color: #1a2a44;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .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;
    }

    /* 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 {
        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;
      }

      .user-type-selection {
        flex-direction: column;
      }
    }
    
    @media (max-width: 320px) {
      body {
        padding: 8px;
      }
      
      .container {
        padding: 20px 15px;
      }
      
      .navbar {
        padding: 8px 12px;
      }
    }
  

/* "OR" divider above the Sign up with Google button (same as the login page) */
.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;
    }
