/* ==========================================================================
   DanceAdmin - Login flow (/login/*)
   Bootstrap 5 + Poppins + CSS-variabelen, los van het adminsjabloon.
   Desktop: gesplitst scherm met dansfoto + oranje overlay in het merkpaneel.
   Mobiel/tablet: dezelfde foto als achtergrond achter een witte kaart.
   Ontwerp: mockups/login/.
   ========================================================================== */

:root {
  --primary-color: #f36f2f;
  --primary-dark: #c25e00;
  --text-color: #26313c;
  --text-muted: #6b7785;
  --border-color: #e2e5ea;
  --danger-color: #d64545;
  --info-color: #3d7bd9;
  --bg-color: #f7f8fa;
  --radius: 12px;
  --photo: url('/da_assets/images/danceadmin_background.jpg');
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: #fff;
}

.da-auth {
  display: flex;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Merkpaneel (desktop)
   -------------------------------------------------------------------------- */
.da-auth-brand {
  position: relative;
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  padding: 3rem 3.5rem;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 124, 0, .50) 0%, rgba(194, 94, 0, .30) 40%, rgba(38, 20, 5, .80) 75%, rgba(20, 10, 2, .92) 100%),
    var(--photo) 42% center / cover no-repeat;
}

.da-auth-brand > * {
  position: relative;
  z-index: 1;
}

.da-auth-brand-top img {
  height: 34px;
}

.da-auth-brand-content {
  max-width: 400px;
  margin-top: auto;  /* tekst onderin, op het donkere deel van de foto */
}

.da-auth-brand-content h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.da-auth-brand-content p {
  font-size: 1rem;
  opacity: .92;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.da-auth-brand-foot {
  margin-top: 2.5rem;
  font-size: .75rem;
  opacity: .7;
}

/* --------------------------------------------------------------------------
   Formulierpaneel
   -------------------------------------------------------------------------- */
.da-auth-panel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #fff;
}

.da-auth-card {
  width: 100%;
  max-width: 380px;
}

.da-auth-logo-mobile {
  display: none;
}

.da-auth-card h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.da-auth-sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

/* Meldingen van de JS (info of fout) - alleen zichtbaar als er iets staat */
#error:empty {
  display: none;
}

#error {
  margin-bottom: 1rem;
  font-size: .85rem;
}

#error span {
  display: block;
  padding: .6rem .8rem;
  border-radius: 8px;
  font-weight: 500;
}

#error .txt-danger { color: var(--danger-color); background: #fdecec; }
#error .txt-info   { color: var(--info-color);   background: #eaf1fc; }

.da-field {
  margin-bottom: 1.25rem;
}

.da-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.da-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.da-field-link {
  /* Groter tikvlak op touch, zonder dat de regel hoger wordt ... */
  padding: .6rem 0;
  margin: -.6rem 0;
  font-size: .8rem;
  color: var(--primary-color);
  text-decoration: none;
}

.da-field-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.da-field input {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;   /* minimaal 16px: anders zoomt iOS in zodra je in het veld tikt */
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.da-field input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 124, 0, .15);
}

.da-password {
  position: relative;
}

.da-password input {
  padding-right: 3.25rem;
}

.da-password-toggle {
  position: absolute;
  top: 50%;
  right: .25rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;    /* tikvlak van 44px */
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.da-password-toggle:hover,
.da-password-toggle[aria-pressed="true"] {
  color: var(--primary-color);
}

.btn-da-primary {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  padding: .8rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(245, 124, 0, .25);
  transition: background .15s, transform .05s, box-shadow .15s;
}

.btn-da-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(194, 94, 0, .3);
}

.btn-da-primary:active {
  transform: scale(.98);
}

.da-auth-version {
  margin-top: 2rem;
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  opacity: .7;
}

/* --------------------------------------------------------------------------
   Tablet en mobiel: foto als achtergrond, kaart erboven (zoals golfassistent)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .da-auth-brand {
    display: none;
  }

  .da-auth-panel {
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(245, 124, 0, .45) 0%, rgba(38, 20, 5, .75) 100%),
      var(--photo) 42% center / cover no-repeat;
  }

  .da-auth-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  }

  .da-auth-logo-mobile {
    display: block;
    height: 36px;
    margin: 0 auto 1.5rem;
  }
}

.da-auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
}

.da-auth-links a {
  display: inline-block;
  padding: .6rem .75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.da-field-hint {
  display: block;
  margin-top: .4rem;
  font-size: .75rem;
  color: var(--text-muted);
}

.da-auth-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.btn-da-primary:disabled {
  opacity: .7;
  cursor: default;
}
