/* Mobile Auth UI (Login / Register)
   Ziel: auf kleinen Screens nur das Wesentliche: Login/Registrierung schnell, sauber, app-artig. */

@media (max-width: 980px) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .auth-bg {
    position: fixed;
    inset: 0;
  }

  .auth-shell {
    display: flex !important;
    padding: 0 !important;
    min-height: 100svh;
  }

  .auth-pane--info {
    display: none !important;
  }

  .auth-pane--form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom)) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 20px 16px;
  }

  .auth-card-head {
    text-align: center;
    margin-bottom: 14px;
  }

  .auth-card-head::before {
    content: "";
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    background: url("/assets/img/thesheep-mark.svg") center / contain no-repeat;
    opacity: 0.95;
  }

  .auth-card-head h2 {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: 0.2px;
  }

  .auth-card-head p {
    display: none !important;
  }

  .auth-form .form-group label {
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    margin-bottom: 6px;
  }

  .auth-form .form-control,
  .auth-form input,
  .auth-form select,
  .auth-form textarea {
    font-size: 16px;
    border-radius: 16px;
    padding: 14px 14px;
  }

  .auth-row {
    margin-top: 6px;
  }

  .checkbox-label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
  }

  .checkbox-label input[type="checkbox"]{
    width: 18px;
    height: 18px;
    accent-color: #7c6cff;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-block {
    min-height: 48px;
    border-radius: 16px;
    font-size: 16px;
  }

  .btn-block {
    width: 100%;
  }

  .form-footer {
    text-align: center;
    margin-top: 14px;
  }

  .form-footer a {
    font-weight: 900;
  }

  .auth-mini-note {
    display: none !important;
  }

  /* 2FA Modal auf Mobile als Bottom-Sheet */
  .twofa-overlay {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .twofa-card {
    width: 100% !important;
    max-width: none !important;
    border-radius: 22px 22px 0 0 !important;
    max-height: calc(100svh - 12px) !important;
  }

  .twofa-actions button {
    min-height: 48px;
    border-radius: 16px;
    font-size: 16px;
  }
}
