/* Mobile-only tweaks for Login page */
@media (max-width: 767px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  *, *::before, *::after {
    box-sizing: border-box;
  }
  img, video, svg, canvas {
    max-width: 100% !important;
    height: auto !important;
  }
  iframe {
    max-width: 100% !important;
  }
  .auth-section {
    padding: 28px 8px; /* match index 8px gutters */
  }
  .login-center {
    padding: 0;
    display: grid;
    place-items: center; /* ensure perfect centering on all phones */
  }
  .auth-card.login-form {
    max-width: calc(100vw - 16px); /* viewport minus 8px margins on both sides */
    width: 100%;
    padding: 18px 16px;
    border-radius: 12px;
  }
  .brand-logo {
    width: 48px;
    height: 48px;
  }
  .auth-header h1 {
    font-size: 1.6rem;
  }
  .auth-subtitle {
    font-size: 0.95rem;
  }

  .field {
    margin-top: 12px;
  }
  .field label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  .field-input input {
    padding: 12px 14px;
    font-size: 1rem;
  }
  .with-toggle .password-toggle {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .login-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .btn-submit {
    margin-top: 16px;
    min-height: 44px;
    font-size: 1.05rem;
  }
  .login-register-link {
    margin-top: 12px;
    font-size: 0.95rem;
  }
  .terms-note {
    font-size: 0.9rem;
  }
}
