/* ── AUTH PAGES STYLE ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg:          #f0eff7;
  --surface:     #ffffff;
  --border:      #e4e2f0;
  --text:        #12101f;
  --muted:       #6b6882;
  --primary:     #5b21b6;
  --primary-mid: #7c3aed;
  --primary-lt:  #a78bfa;
  --grad:        linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #a78bfa 100%);
  --danger:      #ef4444;
  --success:     #10b981;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 8px 24px rgba(91,33,182,.12);
  --shadow-lg:   0 20px 60px rgba(91,33,182,.18);
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
  overflow-x: hidden;
}

/* Background decoration */
body::before {
  content: '';
  position: fixed; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 70%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-wrapper {
  text-align: center;
  width: 100%;
  max-width: 460px;
  position: relative; z-index: 1;
}

.logo-box {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(91,33,182,.3);
}

.title {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.card {
  background: var(--surface);
  width: 100%;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: left;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  margin-top: 18px;
  color: var(--text);
}

label span { color: var(--danger); margin-left: 2px; }

.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg);
  transition: var(--transition);
  gap: 10px;
}

.input-group:focus-within {
  border-color: var(--primary-mid);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}

.input-group i { color: #b0adcb; font-size: 14px; flex-shrink: 0; }

.input-group input {
  border: none; outline: none;
  flex: 1;
  background: transparent;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.toggle-password { cursor: pointer; transition: var(--transition); }
.toggle-password:hover { color: var(--primary-mid); }

.submit-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91,33,182,.4);
}

.submit-btn:active { transform: translateY(0); }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  font-size: 13px; color: var(--muted);
}

.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.bottom-links {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.bottom-links a {
  color: var(--primary-mid);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.bottom-links a:hover { opacity: .8; }

.back-home {
  display: block;
  margin-top: 10px;
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.error-msg {
  color: var(--danger);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

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

@media (max-width: 480px) {
  .card { padding: 26px; }
  .title { font-size: 24px; }
}
