/* auth.css
   Shared styles for login & signup pages.
   Modern glassy look + responsive layout using Bootstrap utility classes.
*/

:root {
  --bg-1: #071426;
  --bg-2: #061624;
  --card-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --accent: #d4af37;
  --muted: #9fb0c8;
  --radius: 14px;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: #eaf4ff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Center container */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 980px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
}

/* Responsive: single column on small screens */
@media (max-width: 991.98px) {
  .auth-card {
    grid-template-columns: 1fr;
  }
}

/* Left hero */
.auth-hero {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.logo {
  background: var(--accent);
  color: #06212a;
  font-weight: 800;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.12);
}
.hero-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Right panel: form area */
.auth-panel {
  padding: 2rem;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.02)
  );
  border-left: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 991.98px) {
  .auth-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
  }
}

/* Form controls */
.form-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  height: 44px;
  border-radius: 10px;
}
.form-control:focus {
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.45);
  outline: none;
  border-color: rgba(212, 175, 55, 0.9);
}

/* Primary button */
.btn-primary-custom {
  background: linear-gradient(90deg, var(--accent), #f0c84a);
  border: none;
  color: #04121a;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.12);
}

/* Secondary / ghost */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* Small helper text & errors */
.form-help {
  color: var(--muted);
  font-size: 0.9rem;
}
.input-error {
  color: #ffb4b4;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Two-column fields */
.row-gapped {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 576px) {
  .row-gapped {
    grid-template-columns: 1fr;
  }
}

/* Footer small line */
.auth-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Small spinner utility */
.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* accessible focus */
button:focus,
a:focus,
input:focus {
  outline: 3px solid rgba(212, 175, 55, 0.12);
  outline-offset: 2px;
}

/* small top-right accent note */
.auth-badge {
  align-self: flex-end;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
