/* /assets/css/register.php — clean registration */

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: #0a0a0f;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ HELP BAR ============ */
.help-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.help-bar .text { font-size: 13px; color: #8a8a9a; }
.help-bar .wa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; background: #25D366; color: #fff;
  border-radius: 30px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .15s;
}
.help-bar .wa-btn:hover { opacity: .9; }
.help-bar .wa-btn svg { width: 15px; height: 15px; }

/* ============ PAGE ============ */
.auth-page {
  min-height: calc(100vh - 50px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 500px at 50% 0%, rgba(229,9,20,.08), transparent 60%);
  pointer-events: none;
}

/* ============ CARD ============ */
.auth-card {
  width: 100%; max-width: 440px;
  background: #111118;
  border: 1px solid #1e1e2a;
  border-radius: 16px;
  padding: 40px 32px 32px;
  position: relative; z-index: 1;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

/* ============ HEAD ============ */
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .logo-slot { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.auth-head .logo-slot img { max-height: 56px; max-width: 200px; width: auto; border-radius: 10px; display: block; }
.auth-head h1 {
  font-size: 17px; font-weight: 600; color: #fff;
  margin: 0; letter-spacing: -.01em; line-height: 1.4;
}

/* ============ FORM ============ */
.auth-form .field { margin-bottom: 16px; }
.auth-form label {
  display: block; font-size: 13px; color: #a4a4b8;
  margin-bottom: 8px; font-weight: 500;
}
.auth-form input {
  width: 100%; padding: 13px 16px;
  font-size: 14.5px;
  background: #0d0d14;
  border: 1px solid #1e1e2a;
  border-radius: 10px; color: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.auth-form input::placeholder { color: #454555; }
.auth-form input:focus {
  outline: none;
  border-color: #e50914;
  box-shadow: 0 0 0 3px rgba(229,9,20,.12);
}
.auth-form .pw-wrap { position: relative; }
.auth-form .pw-wrap input { padding-right: 46px; }
.auth-form .pw-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: none; color: #54546a;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: all .15s;
}
.auth-form .pw-toggle:hover { background: rgba(255,255,255,.05); color: #a4a4b8; }
.auth-form .pw-toggle svg { width: 17px; height: 17px; }

/* ============ PASSWORD STRENGTH ============ */
.pw-strength {
  display: flex; gap: 4px; margin: 10px 0 4px;
}
.pw-strength .bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: #1e1e2a;
  transition: background .25s;
}
.pw-strength[data-score="1"] .bar:nth-child(-n+1) { background: #e74c3c; }
.pw-strength[data-score="2"] .bar:nth-child(-n+2) { background: #f39c12; }
.pw-strength[data-score="3"] .bar:nth-child(-n+3) { background: #3498db; }
.pw-strength[data-score="4"] .bar:nth-child(-n+4) { background: #2ecc71; }
.pw-hint {
  font-size: 11.5px; color: #54546a;
  margin-bottom: 6px; min-height: 14px;
}

/* ============ FIELD HINT ============ */
.field-hint {
  font-size: 11.5px; color: #54546a;
  margin-top: 5px;
}

/* ============ TOS ============ */
.auth-tos {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 8px 0 20px;
  font-size: 12.5px; color: #8a8a9a;
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}
.auth-tos input {
  width: 15px; height: 15px; margin: 0;
  margin-top: 2px;
  accent-color: #e50914;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-tos a { color: #e50914; text-decoration: none; font-weight: 500; }
.auth-tos a:hover { text-decoration: underline; }

/* ============ SUBMIT ============ */
.auth-submit {
  width: 100%; padding: 13px;
  font-size: 14.5px; font-weight: 600;
  border-radius: 10px;
  background: #e50914; color: #fff;
  border: none; cursor: pointer; font-family: inherit;
  letter-spacing: -.005em; transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
}
.auth-submit:hover:not(:disabled) { background: #c80812; }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; }
.auth-submit svg { width: 15px; height: 15px; }

/* ============ ALERT ============ */
.auth-alert {
  margin-top: 14px; padding: 11px 14px;
  border-radius: 10px; font-size: 13px;
  display: none; align-items: flex-start; gap: 8px;
  line-height: 1.5;
}
.auth-alert.show { display: flex; }
.auth-alert.error   { background: rgba(229,9,20,.08); border: 1px solid rgba(229,9,20,.3); color: #ff8b8b; }
.auth-alert.success { background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.3); color: #7ee0a6; }
.auth-alert.info    { background: rgba(243,156,18,.08); border: 1px solid rgba(243,156,18,.3); color: #f3c45e; }

/* ============ FOOT ============ */
.auth-foot {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid #1e1e2a;
  text-align: center;
  font-size: 13.5px; color: #8a8a9a;
}
.auth-foot a { color: #e50914; font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ============ LOADING / SUCCESS ============ */
.auth-loading {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(12px);
  z-index: 2000; align-items: center; justify-content: center;
}
.auth-loading.show { display: flex; }
.auth-loading .ring {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-success {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
  z-index: 2100; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-success.show { display: flex; }
.auth-success-card {
  background: #111118; border: 1px solid #1e1e2a;
  border-radius: 16px; padding: 40px 32px;
  max-width: 340px; width: 100%;
  text-align: center;
}
.auth-success-card .tick {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(46,204,113,.12); color: #2ecc71;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.auth-success-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.auth-success-card p { font-size: 13px; color: #8a8a9a; margin: 0; }

/* ============ MOBILE ============ */
@media (max-width: 480px) {
  .auth-page { padding: 24px 16px; }
  .auth-card { padding: 32px 24px 26px; border-radius: 14px; }
  .auth-head h1 { font-size: 15.5px; }
  .auth-head .logo-slot img { max-height: 48px; }
}