/* ================================================
   LEARNING.CADCOMNET — app.css
   Zoe · 2026-06-02
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #0546f8;
  --dark:   #0a0a0a;
  --text:   #1a1a1a;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --error:  #dc2626;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- TOP BAR ---- */
.bar {
  padding: 20px 32px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bar-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.50);
  text-decoration: none;
}

.bar-link:hover { color: #fff; }

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

/* ---- CARD ---- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
}

.card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 32px;
}

/* ---- FORM ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

input[type="email"],
input[type="password"] {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
}

input:focus { border-color: var(--blue); }

/* ---- REMEMBER ---- */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.remember-row label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0;
}

/* ---- ERROR ---- */
.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.error-msg.show { display: block; }

/* ---- SUBMIT ---- */
.btn-submit {
  width: 100%;
  height: 52px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover:not(:disabled) { background: #0339d8; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- BOTTOM LINKS ---- */
.card-links {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.card-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}

.card-links a span { color: var(--blue); font-weight: 600; }
.card-links a:hover span { text-decoration: underline; }

/* ---- PAYMENT SUCCESS ---- */
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-align: center;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
  text-align: center;
}

.plan-badge {
  display: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  background: #eef2ff;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 0 auto 36px;
}

.btn-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  text-decoration: none;
  cursor: pointer;
}

.status-msg {
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 20px;
  text-align: center;
}

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.30);
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 500px) {
  .card { padding: 32px 24px; }
}
