/* ============================================
   SUPER ADMIN LOGIN - MAIN STYLESHEET
   All px values converted to rem/em as per rules:
   - Fonts and spacing: rem
   - Component sizing: em
   - Borders: px
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* Remove default spacing from all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Set base font size for rem calculations */
  /* 1rem = 16px (browser default) */
  html {
    font-size: 16px;
  }
  
  /* Base body styles that cover entire page */
  body {
    font-family: 'Gotham', Arial, sans-serif;
    background-color: #202020; /* Dark background across all pages */
    color: #f2f2f2; /* Light text color */
    min-height: 100vh; /* Full viewport height minimum */
    display: flex;
    flex-direction: column;
  }
  
  /* ============================================
     HEADER SECTION (APPEARS ON ALL PAGES)
     ============================================ */
  
  /* Header container with shadow */
  .header {
    height: 7.375rem; /* 118px converted to rem */
    width: 100%;
    background-color: #282828;
    display: flex;
    align-items: center; /* Vertical center alignment */
    justify-content: center; /* Horizontal center for title */
    position: relative; /* Allows absolute positioning of logo */
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25); /* Shadow effect */
  }
  
  /* Logo container positioned on left */
  .header-logo {
    position: absolute;
    left: 2.5rem; /* 40px converted to rem */
    display: flex;
    align-items: center;
  }
  
  /* Logo image with shadow */
  .header-logo img {
    width: 5.25em; /* 84px converted to em for component sizing */
    height: 5.25em; /* 84px converted to em */
    filter: drop-shadow(0 0.25rem 0.25rem rgba(0, 0, 0, 0.25)); /* Logo shadow */
    object-fit: contain; /* Preserve aspect ratio */
  }
  
  /* Header title centered */
  .header-title {
    font-family: 'Gotham Rounded', 'Gotham', Arial, sans-serif;
    font-weight: 700; /* Bold */
    font-size: 2rem; /* 32px converted to rem */
    color: #f2f2f2;
    letter-spacing: 0.1em; /* Letter spacing for better readability */
  }
  
  /* ============================================
     MAIN CONTENT AREA
     ============================================ */
  
  /* Main content container fills remaining space */
.main-content {
    flex: 1; /* Takes up remaining vertical space */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically - FULL PAGE */
    padding: 1.25rem; /* 20px padding on all sides */
    position: relative; /* For absolute positioning of BACK button and error container */
  }
  
  /* ============================================
     LOGIN FORM CONTAINER
     ============================================ */
  
  /* Transparent container holding the form */
  .login-container {
    padding: 1.25rem; /* 20px converted to rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 37.5rem; /* 600px max width to contain form */
  }
  
  /* Form element itself */
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px spacing between form groups */
    width: 100%;
    align-items: center; /* Center all form content */
  }
  
  /* ============================================
     FORM FIELDS ROW
     ============================================ */
  
  /* Container to hold email and password fields side by side */
  .form-fields-row {
    display: flex;
    gap: 1.25rem; /* 20px gap between email and password fields */
    width: 100%;
    justify-content: center; /* Center the fields horizontally */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }
  
  /* ============================================
     FORM GROUP (LABEL + INPUT WRAPPER)
     ============================================ */
  
  /* Each form group contains label and input */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 8px spacing between label and input */
    flex: 0 0 auto; /* Don't grow or shrink */
  }
  
  /* Field labels (EMAIL, PASSWORD) */
  .field-label {
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 500; /* Medium weight - matches Figma visual */
    font-size: 1rem; /* 16px converted to rem */
    color: #f2f2f2;
    margin-left: 0.3125rem; /* 5px converted to rem */
    letter-spacing: 0.05em;
  }
  
  /* ============================================
     INPUT WRAPPER (ICON + INPUT + TOGGLE)
     ============================================ */
  
  /* Wrapper that holds icon, input field, and optional toggle */
  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 15.625em; /* 250px converted to em for component sizing */
    height: 2.5em; /* 40px converted to em */
    background-color: #4f4f4f;
    border: 0.5px solid #333333; /* Border stays in px for precision */
    border-radius: 0.5em; /* 8px converted to em */
    padding: 0.75rem; /* 12px converted to rem */
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25); /* Shadow effect */
    transition: border-color 0.2s ease, border-width 0.2s ease; /* Smooth border transitions */
  }
  
  /* Input wrapper focus state - yellow border on entire wrapper */
  .input-wrapper:focus-within {
    border: 2px solid #f5b40f; /* Yellow border when input is focused */
  }
  
  /* Input wrapper error state - red border */
  .input-wrapper.error {
    border: 2px solid #ff5656; /* Error border in px for precision */
  }
  
  /* Left icon inside input wrapper */
  .input-icon {
    width: 1.5rem; /* 24px converted to rem */
    height: 1.5rem; /* 24px converted to rem */
    color: #f2f2f2;
    flex-shrink: 0; /* Prevents icon from shrinking */
    margin-right: 0.5rem; /* Space between icon and input */
  }
  
  /* ============================================
     FORM INPUT FIELDS
     ============================================ */
  
  /* Text input field styling */
  .form-input {
    flex: 1; /* Takes remaining space in wrapper */
    background: transparent; /* Transparent background */
    border: none; /* No border on input itself */
    outline: none; /* Remove default focus outline - wrapper handles focus */
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 400; /* Regular weight */
    font-size: 0.75rem; /* 12px converted to rem */
    color: #f2f2f2; /* Active text color at 100% opacity */
    text-transform: lowercase; /* All lowercase as per design */
  }
  
  /* Placeholder text styling */
  .form-input::placeholder {
    color: rgba(242, 242, 242, 0.2); /* 20% opacity when static */
    text-transform: lowercase;
  }
  
  /* Active/focused input - placeholder becomes fully visible */
  .form-input:focus::placeholder {
    color: rgba(242, 242, 242, 1); /* 100% opacity when typing */
  }
  
  /* Remove autofill yellow background in Chrome */
  .form-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #4f4f4f inset;
    -webkit-text-fill-color: #f2f2f2;
  }
  
  /* ============================================
     PASSWORD TOGGLE BUTTON
     ============================================ */
  
  /* Toggle button for show/hide password */
  .toggle-password {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem; /* Space from input field */
    color: #f2f2f2;
    transition: opacity 0.2s ease;
  }
  
  /* Hover state for toggle button */
  .toggle-password:hover {
    opacity: 0.8;
  }
  
  /* Eye icon sizing */
  .eye-icon {
    width: 1.5rem; /* 24px converted to rem */
    height: 1.5rem; /* 24px converted to rem */
  }
  
  /* Show visible eye icon by default */
  .eye-visible {
    display: block;
  }
  
  /* Hide slash eye icon by default */
  .eye-hidden {
    display: none;
  }
  
  /* When password is visible, swap icons */
  .toggle-password.visible .eye-visible {
    display: none;
  }
  
  .toggle-password.visible .eye-hidden {
    display: block;
  }
  
  /* ============================================
     FORGOT PASSWORD LINK
     ============================================ */
  
  /* Link positioned below password field */
  .forgot-password {
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 325; /* Book weight */
    font-size: 0.75rem; /* 12px converted to rem */
    color: #f2f2f2;
    text-decoration: none;
    align-self: flex-end; /* Align to right of its container */
    margin-top: 0.5rem; /* 8px space from input */
    transition: opacity 0.2s ease;
  }
  
  /* Hover state for forgot password link */
  .forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
  
  /* ============================================
     PRIMARY BUTTON (LOGIN)
     ============================================ */
  
  /* Login button with gradient background */
  .btn-primary {
    width: 12.5em; /* 200px converted to em */
    height: 2.8125em; /* 45px converted to em */
    margin-top: 1.25rem; /* 20px space above button */
    border: none;
    border-radius: 1.25em; /* 20px converted to em for rounded corners */
    /* Radial gradient with correct stop points: 30% for #FCDB35 and 100% for #F5B40F */
    background: radial-gradient(ellipse at center, #fcdb35 0%, #fcdb35 30%, #f5b40f 100%);
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25); /* Shadow effect */
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 500; /* Medium weight - matches Figma visual */
    font-size: 1rem; /* 16px converted to rem */
    color: #f2f2f2; /* Light text color on button */
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    letter-spacing: 0.05em;
    align-self: center; /* Center button horizontally */
  }
  
  /* Hover state - slight lift effect */
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 0.5rem rgba(0, 0, 0, 0.3);
  }
  
  /* Active state - pressed down effect */
  .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
  }
  
  /* Disabled state during loading */
  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  /* Loading text hidden by default */
  .btn-loading {
    display: none;
  }
  
  /* ============================================
     ERROR MESSAGES CONTAINER
     ============================================ */
  
  /* Error container positioned at bottom of page */
  .error-container {
    position: fixed;
    bottom: 2.5rem; /* 40px from bottom */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px spacing between multiple error messages */
    z-index: 1000; /* Above all other content */
  }
  
  /* Individual error message box */
  .error-message {
    width: 31.25em; /* 500px converted to em */
    min-height: 2.5em; /* 40px converted to em */
    padding: 0.75rem; /* 12px converted to rem */
    background-color: rgba(255, 255, 255, 0.1); /* 10% opacity white background */
    border: 2px solid #ff5656; /* Red border in px for precision */
    border-radius: 0.5em; /* 8px converted to em */
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25); /* Shadow effect */
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 325; /* Book weight */
    font-size: 1rem; /* 16px converted to rem */
    color: #ff5656; /* Red text color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: slideUp 0.3s ease-out; /* Slide up animation when appearing */
  }
  
  /* Slide up animation for error messages */
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(1.25rem); /* Slide from 20px below */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ============================================
     RESPONSIVE DESIGN
     ============================================ */
  
  /* Tablet and smaller screens */
  @media (max-width: 768px) {
    /* Stack email and password fields vertically on smaller screens */
    .form-fields-row {
      flex-direction: column;
      gap: 0.75rem; /* 12px gap when stacked */
      align-items: center;
    }
    
    /* Reduce header height */
    .header {
      height: 5rem; /* 80px */
    }
    
    /* Smaller logo */
    .header-logo img {
      width: 3.75em; /* 60px */
      height: 3.75em; /* 60px */
    }
    
    /* Smaller header title */
    .header-title {
      font-size: 1.5rem; /* 24px */
    }
    
    /* Adjust logo position */
    .header-logo {
      left: 1.25rem; /* 20px */
    }
    
    /* Narrower error messages */
    .error-message {
      width: 90vw; /* 90% of viewport width */
      max-width: 31.25em; /* 500px max */
    }
  }
  
  /* Mobile screens */
  @media (max-width: 480px) {
    /* Even smaller header */
    .header {
      height: 4rem; /* 64px */
    }
    
    /* Even smaller logo */
    .header-logo img {
      width: 3em; /* 48px */
      height: 3em; /* 48px */
    }
    
    /* Smaller header title */
    .header-title {
      font-size: 1.125rem; /* 18px */
    }
    
    /* Adjust logo position */
    .header-logo {
      left: 1rem; /* 16px */
    }
    
    /* Full width error messages with margin */
    .error-message {
      width: calc(100vw - 2rem); /* Full width minus margins */
    }
  }
  
  /* ============================================
     ACCESSIBILITY IMPROVEMENTS
     ============================================ */
  
  /* Focus visible for keyboard navigation */
  /* Note: Input focus is now handled by .input-wrapper:focus-within */
  .toggle-password:focus,
  .forgot-password:focus,
  .btn-primary:focus {
    outline: 2px solid #fcdb35; /* Yellow outline for focus */
    outline-offset: 2px;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ============================================
   FORGOT PASSWORD PAGE STYLES
   ============================================ */

/* Page container - no special layout needed */
.page-container {
    width: 100%;
    height: 100%;
    display: contents; /* Pass-through container */
  }
  
  /* Back link styling - ABSOLUTELY POSITIONED, removed from layout flow */
.back-link {
    position: absolute;
    top: 1rem; /* 134px total: 118px header + 16px spacing */
    left: calc(2.5rem + 2.625em); /* 40px (logo offset) + 42px (half logo width) = logo center */
    transform: translateX(-50%); /* Shift left by half of BACK button width to center it */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* 8px space between arrow and text */
    color: #f2f2f2;
    text-decoration: none;
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 500; /* Medium weight */
    font-size: 0.875rem; /* 14px converted to rem */
    transition: opacity 0.2s ease;
    cursor: pointer;
    z-index: 10; /* Above other content */
  }
  
  /* Back link hover state */
  .back-link:hover {
    opacity: 0.8;
  }
  
  /* Back arrow icon */
  .back-arrow {
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    color: #f2f2f2;
  }
  
  /* Forgot password container - centered in FULL PAGE (ignores BACK button) */
  .forgot-password-container {
    padding: 1.25rem; /* 20px padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 37.5rem; /* 600px max width */
  }
  
  /* Reset form */
  .reset-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px spacing between form groups */
    width: 100%;
    align-items: center;
  }
  
  /* Wider input wrapper for email field on forgot password page */
  .input-wrapper-wide {
    width: 27em; /* 432px converted to em - wider than default 250px */
  }
  
  /* Password requirements section */
  .password-requirements {
    margin-top: 1rem; /* 16px space above requirements */
    padding: 1rem; /* 16px padding */
    background-color: rgba(79, 79, 79, 0.3); /* Semi-transparent background */
    border-radius: 0.5em; /* 8px */
    border-left: 3px solid #fcdb35; /* Yellow accent border */
    width: 100%;
  }
  
  /* Requirements title */
  .requirements-title {
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 500; /* Medium */
    font-size: 0.875rem; /* 14px */
    color: #f2f2f2;
    margin-bottom: 0.75rem; /* 12px */
  }
  
  /* Requirements list */
  .requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 8px between items */
  }
  
  /* Individual requirement item */
  .requirement-item {
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 325; /* Book */
    font-size: 0.75rem; /* 12px */
    color: rgba(242, 242, 242, 0.7); /* 70% opacity by default */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px space between icon and text */
    transition: color 0.2s ease;
  }
  
  /* Requirement icon (circle or checkmark) */
  .req-icon {
    font-size: 1rem; /* 16px */
    color: rgba(242, 242, 242, 0.5);
    transition: color 0.2s ease;
  }
  
  /* Requirement met state */
  .requirement-item.met {
    color: #4caf50; /* Green for met requirements */
  }
  
  .requirement-item.met .req-icon {
    color: #4caf50;
  }
  
  /* ============================================
     RESPONSIVE DESIGN FOR FORGOT PASSWORD
     ============================================ */
  
  /* Tablet and smaller screens */
  @media (max-width: 768px) {
    /* Adjust back link position for tablets */
    .back-link {
        top: 1rem; /* 96px total: 80px header + 16px spacing */
        left: calc(1.25rem + 1.875em); /* Adjusted for smaller logo center */
        transform: translateX(-50%); /* Center BACK button */
        font-size: 0.75rem; /* 12px */
      }
    
    /* Narrower email input on smaller screens */
    .input-wrapper-wide {
      width: 90vw;
      max-width: 27em;
    }
  }
  
  /* Mobile screens */
  @media (max-width: 480px) {
    /* Adjust back link position for mobile */
    .back-link {
        top: 1rem; /* Smaller header (64px) + 16px spacing */
        left: calc(1rem + 1.5em); /* Adjusted for smaller logo center */
        transform: translateX(-50%); /* Center BACK button */
        font-size: 0.75rem; /* 12px */
      }
    
    /* Back arrow slightly smaller on mobile */
    .back-arrow {
      width: 1rem; /* 16px */
      height: 1rem; /* 16px */
    }
    
    /* Smaller password requirements */
    .password-requirements {
      padding: 0.75rem; /* 12px */
    }
    
    .requirements-title {
      font-size: 0.75rem; /* 12px */
    }
    
    .requirement-item {
      font-size: 0.6875rem; /* 11px */
    }
    
    /* Full width email input on mobile */
    .input-wrapper-wide {
      width: calc(100vw - 4rem);
    }
  }
  
  /* ============================================
     SUCCESS MESSAGE CONTAINER
     ============================================ */
  
  /* Success container positioned at bottom of page */
  .success-container {
    position: fixed;
    bottom: 2.5rem; /* 40px from bottom */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px spacing between multiple messages */
    z-index: 1000; /* Above all other content */
  }
  
  /* Individual success message box */
  .success-message {
    width: 31.25em; /* 500px converted to em */
    min-height: 2.5em; /* 40px converted to em */
    padding: 0.75rem; /* 12px converted to rem */
    background-color: rgba(76, 175, 80, 0.1); /* 10% opacity green background */
    border: 2px solid #4caf50; /* Green border */
    border-radius: 0.5em; /* 8px converted to em */
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25); /* Shadow effect */
    font-family: 'Gotham', Arial, sans-serif;
    font-weight: 325; /* Book weight */
    font-size: 1rem; /* 16px converted to rem */
    color: #4caf50; /* Green text color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: slideUp 0.3s ease-out; /* Slide up animation when appearing */
  }
  
  /* ============================================
     RESPONSIVE DESIGN FOR FORGOT PASSWORD
     ============================================ */
  
  /* Tablet and smaller screens */
  @media (max-width: 768px) {
    /* Narrower success messages */
    .success-message {
      width: 90vw; /* 90% of viewport width */
      max-width: 31.25em; /* 500px max */
    }
    
    /* Adjust back link */
    .back-link {
      font-size: 0.75rem; /* 12px */
    }
  }
  
  /* Mobile screens */
  @media (max-width: 480px) {
    /* Full width success messages with margin */
    .success-message {
      width: calc(100vw - 2rem); /* Full width minus margins */
    }
    
    /* Smaller password requirements */
    .password-requirements {
      padding: 0.75rem; /* 12px */
    }
    
    .requirements-title {
      font-size: 0.75rem; /* 12px */
    }
    
    .requirement-item {
      font-size: 0.6875rem; /* 11px */
    }
  }