/* ===== AUTHENTICATION PAGES STYLES ===== */
/* Mobile-first responsive design with psychological color palette */

:root {
  /* Core Color Variables */
  --primary-blue: #0A66C2;
  --dark-blue: #004182;
  --pure-white: #FFFFFF;
  --success-green: #2E8B57;
  --premium-gold: #FFD700;
  --alert-coral: #FF6B6B;
  --light-gray: #F5F5F5;
  --medium-gray: #E1E1E1;
  --text-dark: #1D2226;
  --text-medium: #666666;
}

/* Base Styles */
body {
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
  background-color: var(--light-gray);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* Auth Container */
.auth-container {
  max-width: 420px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--pure-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 65, 130, 0.08);
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo img {
  height: 48px;
  width: auto;
}

/* Form Elements */
.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--medium-gray);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, 0.2);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
}

/* Role Selector */
.role-selector {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.role-selector label {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-selector input[type="radio"] {
  display: none;
}

.role-selector input[type="radio"]:checked + label {
  border-color: var(--primary-blue);
  background-color: rgba(10, 102, 194, 0.05);
  color: var(--primary-blue);
}

/* Alerts */
.alert {
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.alert.error {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--alert-coral);
  border-left: 4px solid var(--alert-coral);
}

.alert.success {
  background-color: rgba(46, 139, 87, 0.1);
  color: var(--success-green);
  border-left: 4px solid var(--success-green);
}

/* Footer Links */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-medium);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

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

/* WebView Optimizations */
@media (max-width: 480px) {
  .auth-container {
    margin: 0;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
  
  .role-selector {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  input, button {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
}

/* Special Elements */
.verified-badge {
  display: inline-block;
  padding: 4px 8px;
  background-color: rgba(46, 139, 87, 0.1);
  color: var(--success-green);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-container {
  animation: fadeIn 0.4s ease-out;
}


/* -----------------------------------------------------------------------


/* Role Selector - Updated Version */
.role-selector {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.role-selector label {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text-medium);
  background-color: var(--pure-white);
}

.role-selector input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-selector input[type="radio"]:checked + label {
  border-color: var(--primary-blue);
  background-color: rgba(10, 102, 194, 0.1);
  color: var(--primary-blue);
  font-weight: 600;
}

.role-selector input[type="radio"]:focus + label {
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.2);
}

.role-selector label:hover {
  border-color: var(--primary-blue);
}


/* -----------------------------------------------------------------------
