* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0f111a;
    color: white;
}

.auth-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background-color: #1a1c28;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth-box h1 {
    color: #ccff00;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-heading {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

label {
    font-size: 14px;
    color: #aaa;
}

input {
    padding: 12px;
    margin-top: 5px;
    border: none;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: white;
    font-size: 14px;
    width: 100%;
}

input::placeholder {
    color: #777;
}

button {
    padding: 12px;
    background-color: #ccff00;
    color: #0f111a;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #bde600;
}

.footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.footer-text a {
    color: #ccff00;
    text-decoration: none;
}

.logo_outer {
    width: 100%;
    max-width: 190px;
    border-radius: 5px;
    margin: auto auto 20px auto;
}
input:focus-visible{
  outline: none;
}

.auth-box img.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -------------------- ENHANCED RESPONSIVE STYLES -------------------- */

/* Tablet styles */
@media (max-width: 1024px) {
  .auth-wrapper {
    padding: 15px;
  }
  
  .auth-box {
    max-width: 450px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .auth-wrapper {
    padding: 10px;
    min-height: 100vh;
  }
  
  .auth-box {
    padding: 30px 20px;
    max-width: 90%;
    margin: auto;
  }

  .auth-box h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .auth-heading {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .logo_outer {
    margin-bottom: 25px;
  }
  
  .logo_outer img {
    max-width: 160px;
  }
  
  form {
    gap: 18px;
  }
  
  label {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  input, select, textarea {
    padding: 12px 15px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
    width: 100%;
    border: 1px solid #333;
    background-color: #1a1a1a;
    color: white;
  }
  
  button {
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    min-height: 44px; /* Touch-friendly */
    width: 100%;
  }
  
  .footer-text {
    font-size: 14px;
    margin-top: 20px;
  }
  
  .footer-text a {
    color: #ccff00;
    text-decoration: underline;
  }
  
  /* Form validation messages */
  .error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
  }
  
  .success-message {
    color: #51cf66;
    font-size: 14px;
    margin-top: 5px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .auth-wrapper {
    padding: 8px;
  }
  
  .auth-box {
    padding: 25px 15px;
    max-width: 95%;
  }
  
  .auth-box h1 {
    font-size: 22px;
  }

  .auth-heading {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .logo_outer img {
    max-width: 140px;
  }
  
  form {
    gap: 15px;
  }

  label {
    font-size: 13px;
  }

  input, select, textarea {
    padding: 10px 12px;
    font-size: 16px;
  }
  
  button {
    padding: 10px;
    font-size: 15px;
  }

  .footer-text {
    font-size: 13px;
  }
  
  .error-message,
  .success-message {
    font-size: 13px;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .auth-box {
    padding: 20px 12px;
    max-width: 98%;
  }
  
  .auth-box h1 {
    font-size: 20px;
  }
  
  .auth-heading {
    font-size: 13px;
  }
  
  .logo_outer img {
    max-width: 120px;
  }
  
  input, select, textarea, button {
    font-size: 14px;
    padding: 9px 10px;
  }
  
  .footer-text {
    font-size: 12px;
  }
  
  .error-message,
  .success-message {
    font-size: 12px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .auth-wrapper {
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .auth-box {
    max-width: 400px;
    padding: 20px;
  }
  
  .logo_outer {
    margin-bottom: 15px;
  }
  
  .auth-heading {
    margin-bottom: 20px;
  }
}

/* Focus states for better accessibility on mobile */
@media (max-width: 768px) {
  input:focus,
  select:focus,
  textarea:focus,
  button:focus {
    outline: 2px solid #ccff00;
    outline-offset: 2px;
  }
  
  /* Ensure touch targets are large enough */
  a, button, input, select {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve form usability */
  input[type="email"] {
    text-transform: lowercase;
  }
  
  input[type="tel"] {
    direction: ltr;
  }
  
  /* Better textarea styling */
  textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  /* Loading state for submit button */
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}