:root {
    --pipboy-green: #8fff00;
    --bg: #000;
    --box-bg: rgba(0, 0, 0, 0.85);
    --border: rgba(143, 255, 0, 0.35);
    --muted: rgba(143, 255, 0, 0.6);
  }
  
  /* ===== BODY ===== */
  body {
    margin: 0;
    height: 100vh;
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pipboy-green);
    overflow: hidden;
  }
  
  /* ===== BACKGROUND ===== */
  .background {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 0;
    pointer-events: none;
  }
  
  /* ===== BACKGROUND TEXT EFFECT ===== */
  .bg-text {
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(143, 255, 0, 0.25);
    position: relative;
  }
  
  .bg-text::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: var(--pipboy-green);
    filter: blur(8px);
    opacity: 0.4;
    animation: breathe 3.5s ease-in-out infinite;
  }
  
  .bg-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: var(--pipboy-green);
    opacity: 0.12;
    animation: breathe 3.5s ease-in-out infinite;
  }
  
  @keyframes breathe {
    0%, 100% { opacity: 0.15; filter: blur(10px); }
    50% { opacity: 0.6; filter: blur(3px); }
  }
  
  /* ===== FOREGROUND LAYOUT ===== */
  .auth-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  
  /* ===== AUTH BOX ===== */
  .auth-box {
    width: 100%;
    max-width: 340px;
    background: var(--box-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 18px 16px;
    backdrop-filter: blur(8px);
  }
  
  .auth-box.secondary {
    padding: 12px 16px;
    text-align: center;
  }
  
  /* ===== TITLE ===== */
  .auth-title {
    font-family: 'Courier New', Courier, monospace;
    color: var(--pipboy-green);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
  }
  
  /* ===== FORM ===== */
  .form-group {
    margin-bottom: 10px;
  }
  
  /* LABELS */
  label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 4px;
  }
  
  /* INPUTS - UNIFORM PIPBOY STYLE */
  input, select, textarea {
    width: 100%;
    box-sizing: border-box;
    background-color: #000;
    color: var(--pipboy-green);
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px 40px 10px 10px; /* space for toggle icon on password */
    outline: none;
  }
  
  input::placeholder,
  textarea::placeholder,
  select::placeholder {
    color: rgba(143, 255, 0, 0.35);
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--pipboy-green);
    box-shadow: 0 0 5px var(--pipboy-green);
    background-color: #000;
  }
  
  /* ===== PASSWORD GROUP & TOGGLE ===== */
  .password-container,
  .username-container {
    position: relative;
  }
  
  .password-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }
  
  #toggle-password {
    cursor: pointer;
    position: absolute;
    right: 10px;
    width: 22px;          /* smaller eye icon */
      height: 22px;
    top: 36%;
    transform: translateY(-5%);
    filter: brightness(0.6);
    transition: filter 0.3s;
  }
  
  #toggle-password:hover,
  #toggle-password.yesshow {
    filter: brightness(1);
    box-shadow: none;
  }
  
  /* ===== ROWS ===== */
  .form-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-top: 6px;
  }
  
  /* ===== LINKS ===== */
  .auth-links a {
    display: block;
    margin: 5px 0;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    color: var(--pipboy-green);
  }
  
  .auth-links a:hover {
    text-decoration: underline;
  }
  
  /* ===== BUTTONS ===== */
  button,
  .form-btn {
    width: 100%;
    padding: 9px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 2px solid var(--pipboy-green);
    background: transparent;
    color: var(--pipboy-green);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  button:hover,
  .form-btn:hover {
    background-color: var(--pipboy-green);
    color: #0b0b0b;
  }
  
  /* ===== CHECKBOX / RADIO THEME ===== */
  .checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    color: var(--pipboy-green);
    cursor: pointer;
    margin: 12px 0;
    user-select: none;
  }
  
  .checkbox-container input {
    display: none;
  }
  
  .checkbox-container .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--pipboy-green);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
    background-color: #000;
  }
  
  .checkbox-container input:checked + .checkmark::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--pipboy-green);
  }
  
  .checkbox-container:hover .checkmark {
    box-shadow: 0 0 6px rgba(143, 255, 0, 0.6);
  }
  
  /* ===== RESPONSIVE ===== */
 /* Small phone adjustments (≤ 376px) */
@media (max-width: 376px) {
    .auth-wrapper {
      gap: 8px; /* slightly tighter spacing */
    }
  
    .auth-box {
      width: 90%;           /* scale down width */
      max-width: 300px;     /* reduce max width */
      padding: 16px;        /* slightly smaller padding */
    }
  
    .auth-title {
      font-size: 1rem;      /* scale down title */
    }
  
    input,
    select,
    textarea {
      font-size: 0.75rem;   /* smaller text in fields */
      padding: 7px 8px;     /* reduce padding */
    }
  
    button,
    .form-btn {
      font-size: 0.75rem;   /* smaller buttons */
      padding: 7px;         /* smaller padding */
    }
  
    .auth-links a {
      font-size: 12px;      /* smaller links */
      margin: 4px 0;        /* slightly tighter spacing */
    }
  
    #toggle-password {
      width: 22px;          /* smaller eye icon */
      height: 22px;
      right: 8px;           /* adjust distance from edge */
    }
  
    .checkbox-container {
      gap: 6px;
      font-size: 12px;      /* smaller checkbox labels */
    }
  
    .checkbox-container .checkmark {
      width: 16px;
      height: 16px;
    }
  
    .checkbox-container input:checked + .checkmark::after {
      width: 6px;
      height: 6px;
      top: 3px;
      left: 3px;
    }
  }

  .auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 5px; /* space between logo and first input */
  }
  
  .auth-logo img {
    max-width: 150px;   /* scale logo */
    width: 13%;
    height: auto;
    object-fit: contain;
  }
  