/* ── Platine — auth.css ─────────────────────────────────────
   Login + Register page styles
────────────────────────────────────────────────────────── */

.auth-body {
  min-height: 100vh;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
}

/* NAV */
.auth-nav {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--bd);
}

/* MAIN LAYOUT */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 24px;
}

/* CARD */
.auth-card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--sh2);
}

/* HEADER */
.auth-header { margin-bottom: 28px; }
.auth-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.auth-sub { font-size: 13px; color: var(--tx2); line-height: 1.6; }

/* FORM */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--tx3);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--bd);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--tx);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field-input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.field-input::placeholder { color: var(--tx3); }
.field-input.error { border-color: var(--er); }

/* PASSWORD TOGGLE */
.field-pw-wrap { position: relative; }
.field-pw-wrap .field-input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--tx3);
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  transition: color .15s;
}
.pw-toggle:hover { color: var(--tx); }

/* PASSWORD STRENGTH */
.pw-strength {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
}
.pw-bar {
  flex: 1; height: 3px; background: var(--bd);
  border-radius: 99px; overflow: hidden;
}
.pw-fill {
  height: 100%; width: 0%;
  border-radius: 99px;
  transition: width .3s, background .3s;
}
.pw-label { font-family: var(--mono); font-size: 10px; color: var(--tx3); min-width: 40px; }

/* GDPR */
.auth-gdpr {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11px; color: var(--tx2); line-height: 1.5;
}
.auth-gdpr input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--ac); }
.auth-gdpr a { color: var(--ac); font-weight: 600; }

/* ERROR */
.auth-error {
  font-family: var(--mono); font-size: 11px; color: var(--er);
  background: var(--er-bg); border: 1px solid var(--er-bd);
  border-radius: 5px; padding: 8px 12px;
  display: none;
}
.auth-error.visible { display: block; }

/* SUBMIT BUTTON */
.auth-btn {
  width: 100%; padding: 12px;
  background: var(--tx); color: #fff;
  border: none; border-radius: 6px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.auth-btn:hover { background: #2a2a2a; transform: translateY(-1px); box-shadow: var(--sh2); }
.auth-btn:disabled { opacity: .5; pointer-events: none; }
.btn-loader { letter-spacing: .2em; animation: ldots 1s step-end infinite; }
@keyframes ldots { 0%{opacity:1} 33%{opacity:.3} 66%{opacity:.6} 100%{opacity:1} }

/* FOOTER SWITCH */
.auth-footer {
  margin-top: 20px; text-align: center;
  font-size: 13px; color: var(--tx2);
  padding-top: 20px; border-top: 1px solid var(--bd);
}
.auth-switch {
  background: none; border: none; cursor: pointer;
  color: var(--ac); font-weight: 700; font-size: 13px;
  font-family: var(--sans); transition: color .15s;
}
.auth-switch:hover { color: var(--ac2); }

/* SUCCESS */
.auth-success {
  text-align: center; padding: 20px 0;
}
.success-icon {
  width: 52px; height: 52px; background: var(--ok-bg);
  border: 2px solid var(--ac4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ac); margin: 0 auto 16px;
  animation: popin .3s ease both;
}
@keyframes popin { from{transform:scale(.5);opacity:0} to{transform:scale(1);opacity:1} }
.success-title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.success-sub { font-size: 13px; color: var(--tx2); }

/* SIDE INFO */
.auth-side {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 240px;
}
.side-card {
  background: var(--bg); border: 1px solid var(--bd);
  border-radius: 8px; padding: 16px;
  box-shadow: var(--sh);
}
.side-icon { font-size: 20px; margin-bottom: 8px; }
.side-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.side-desc { font-size: 12px; color: var(--tx2); line-height: 1.5; }

/* VIEW TRANSITION */
.auth-view { animation: fadein .25s ease both; }
@keyframes fadein { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
