/* Modern Authentication Pages CSS */
:root {
    --primary: #8B4513;
    --primary-dark: #654321;
    --primary-light: #A0522D;
    --secondary: #4A7C59;
    --accent: #D4A76A;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.5;
  }
  
  .modern-auth {
    min-height: 100vh;
    display: flex;
  }
  
  /* Container Layout */
  .auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
  }
  
  /* Branding Panel */
  .auth-branding-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .auth-branding-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M0,0 L100,0 L100,100 Z" fill="white"/></svg>');
    background-size: cover;
  }
  
  .branding-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
  }
  
  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    text-decoration: none;
    color: white;
  }
  
  .logo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  
  .logo-primary {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .logo-secondary {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
  }
  
  /* Branding Content */
  .branding-quote {
    margin-bottom: 3rem;
  }
  
  .branding-quote h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .branding-quote p {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 300;
  }
  
  /* Testimonial */
  .testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .quote-icon {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
  }
  
  .testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-dark);
  }
  
  .author-info {
    display: flex;
    flex-direction: column;
  }
  
  .author-info strong {
    font-weight: 600;
  }
  
  .author-info span {
    font-size: 0.875rem;
    opacity: 0.8;
  }
  
  /* Features */
  .features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
  }
  
  .feature-item i {
    font-size: 0.875rem;
  }
  
  /* Benefits */
  .benefits {
    margin-bottom: 2rem;
  }
  
  .benefits h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
  }
  
  .benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .benefit-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .benefit-content p {
    font-size: 0.875rem;
    opacity: 0.8;
  }
  
  /* Stats */
  .stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  .stat-item span {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
  }
  
  /* Form Panel */
  .auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-white);
    overflow-y: auto;
  }
  
  .form-container {
    max-width: 480px;
    width: 100%;
    padding: 2rem 0;
  }
  
  /* Form Header */
  .form-header {
    margin-bottom: 2rem;
  }
  
  .mobile-logo {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
  }
  
  .form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
  }
  
  .form-subtitle {
    color: var(--text-light);
    font-size: 1rem;
  }
  
  /* Signup Steps */
  .signup-steps {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
  }
  
  .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: var(--transition);
  }
  
  .step.active {
    opacity: 1;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: var(--shadow);
  }
  
  .step.active .step-number {
    background: var(--primary);
    color: white;
  }
  
  .step-label {
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Social Login */
  .social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .social-btn {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .social-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-light);
  }
  
  .social-btn.google-btn i {
    color: #DB4437;
  }
  
  .social-btn.linkedin-btn i {
    color: #0077B5;
  }
  
  /* Divider */
  .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-lighter);
    font-size: 0.875rem;
  }
  
  .divider::before,
  .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
  }
  
  .divider span {
    padding: 0 1rem;
  }
  
  /* Form Styles */
  .modern-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* Form Groups */
  .form-group {
    position: relative;
  }
  
  .form-group label:not(.checkbox-text) {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
  }
  
  /* Floating Labels */
  .floating-label {
    position: relative;
  }
  
  .floating-label input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
  }
  
  .floating-label input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
  }
  
  .floating-label label {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
  }
  
  .floating-label.focused label,
  .floating-label.has-value label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    background: white;
    padding: 0 0.5rem;
    color: var(--primary);
  }
  
  .floating-label.focused label {
    color: var(--primary);
  }
  
  .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 1rem;
  }
  
  .floating-label.focused .input-icon {
    color: var(--primary);
  }
  
  /* Password Toggle */
  .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
  }
  
  .password-toggle:hover {
    color: var(--text);
  }
  
  /* Form Options */
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -0.5rem 0;
  }
  
  .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .remember-me input {
    width: 16px;
    height: 16px;
  }
  
  .remember-me label {
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  .forgot-password {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .forgot-password:hover {
    text-decoration: underline;
  }
  
  /* Select Styling */
  .role-selector,
  .country-selector {
    position: relative;
  }
  
  .role-selector select,
  .country-selector select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: white;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .role-selector select:focus,
  .country-selector select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
  }
  
  .select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-lighter);
  }
  
  /* Role Cards */
  .role-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
  }
  
  .role-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
  }
  
  .role-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
  }
  
  .role-card.selected {
    border-color: var(--primary);
    background: rgba(139, 69, 19, 0.05);
  }
  
  .role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .role-card label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
  }
  
  .role-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .role-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
  }
  
  .role-content p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
  }
  
  /* Checkbox Styling */
  .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
  }
  
  .checkbox-container input {
    display: none;
  }
  
  .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: var(--transition);
  }
  
  .checkbox-container input:checked + label .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
  }
  
  .checkbox-container input:checked + label .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
  }
  
  .checkbox-text {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.4;
  }
  
  .text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .text-link:hover {
    text-decoration: underline;
  }
  
  /* Terms Group */
  .terms-group {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin: 0.5rem 0;
  }
  
  /* Submit Button */
  .submit-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
  }
  
  .submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  .submit-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
  }
  
  .submit-btn:hover i {
    transform: translateX(4px);
  }
  
  /* Form Footer */
  .form-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.875rem;
  }
  
  .form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .form-footer a:hover {
    text-decoration: underline;
  }
  
  /* Demo Notice */
  .demo-notice {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-top: 2rem;
    border-left: 4px solid var(--warning);
  }
  
  .demo-icon {
    color: var(--warning);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
  }
  
  .demo-content strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 0.875rem;
  }
  
  .demo-content p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
  }
  
  /* Password Strength */
  #password-strength {
    margin-top: 0.5rem;
  }
  
  .strength-meter {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
  }
  
  .strength-bar {
    height: 100%;
    transition: width 0.3s ease;
  }
  
  .strength-label {
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Error States */
  .form-group.error input,
  .form-group.error select {
    border-color: var(--error);
  }
  
  .form-group.error input:focus,
  .form-group.error select:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }
  
  .error-message {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
  }
  
  /* Notifications */
  .notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .notification.show {
    transform: translateX(0);
  }
  
  .notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  
  .notification-success .notification-icon {
    color: var(--success);
  }
  
  .notification-error .notification-icon {
    color: var(--error);
  }
  
  .notification-info .notification-icon {
    color: var(--info);
  }
  
  .notification-content {
    flex: 1;
    font-size: 0.875rem;
  }
  
  .notification-close {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    flex-shrink: 0;
  }
  
  .notification-close:hover {
    color: var(--text);
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .auth-branding-panel {
      padding: 2rem;
    }
    
    .branding-quote h2 {
      font-size: 1.75rem;
    }
    
    .role-cards {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .modern-auth {
      background: var(--bg-white);
    }
    
    .auth-container {
      flex-direction: column;
    }
    
    .auth-branding-panel {
      display: none;
    }
    
    .mobile-logo {
      display: flex;
    }
    
    .auth-form-panel {
      padding: 1rem;
      align-items: flex-start;
    }
    
    .form-container {
      padding: 1rem 0;
    }
    
    .form-header h1 {
      font-size: 1.75rem;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
    }
    
    .notification {
      left: 1rem;
      right: 1rem;
      max-width: none;
    }
  }
  
  @media (max-width: 480px) {
    .form-header h1 {
      font-size: 1.5rem;
    }
    
    .social-login {
      flex-direction: column;
    }
    
    .form-options {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
  }