/* =======================================
   LOUDWAVE — Auth Pages
   ======================================= */

.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  padding: 0 16px 48px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  padding: 28px 0 36px;
}
.auth-logo svg { width: 24px; height: 24px; }

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px 32px;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-2);
}

.social-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  flex: 1;
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.social-btn:hover { background: var(--bg-4); border-color: var(--border-2); }

.auth-divider {
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--bg-2);
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-3);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.field-link:hover { color: var(--white); }

.field-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

.field-group input {
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.field-group input:focus { border-color: var(--border-2); background: var(--bg-4); }
.field-group input.error { border-color: #ef4444; }
.field-group input.ok { border-color: #22c55e; }

.input-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-3);
  pointer-events: none;
  white-space: nowrap;
}

.input-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  border-radius: 4px;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
}
.input-toggle:hover { color: var(--text-2); }
.input-toggle svg { width: 15px; height: 15px; }

.input-wrap input { padding-right: 38px; }

.field-msg {
  font-size: 11px;
  min-height: 14px;
  margin-top: 2px;
}
.field-msg.ok { color: #22c55e; }
.field-msg.err { color: #ef4444; }

/* Password strength */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pw-bar {
  flex: 1;
  height: 3px;
  background: var(--bg-5);
  border-radius: 2px;
  overflow: hidden;
}

#pwFill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

#pwLabel { font-size: 11px; color: var(--text-3); min-width: 40px; text-align: right; }

.field-check {
  margin-top: -4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
  width: 16px; height: 16px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--bg-3);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}

.checkbox-label input:checked + .checkmark {
  background: var(--white);
  border-color: var(--white);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translate(1px, -1px);
  display: block;
}

.checkbox-label a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-label a:hover { color: var(--white); }

.btn-full {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 4px;
}

.auth-err {
  font-size: 12px;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 20px;
}

.auth-switch a { color: var(--white); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 2px; }
