/* ==========================================================================
   Ebookerr — Register / Login page
   ========================================================================== */
.auth-page {
  min-height: 100vh; position: relative; overflow: hidden;
  background: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
}
.auth-bg { position: absolute; inset: 0; overflow: hidden; }
.auth-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.auth-bg .orb-1 { width: 480px; height: 480px; background: rgba(124,58,237,.35); top: -160px; right: -100px; }
.auth-bg .orb-2 { width: 380px; height: 380px; background: rgba(236,72,153,.25); bottom: -140px; left: -80px; }

.auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 420px;
  background: var(--c-white); border-radius: var(--radius-lg);
  padding: 40px 36px; box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.auth-logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--c-dark); font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin-bottom: 28px;
}
.auth-logo-dot { color: var(--c-secondary); }

.auth-view h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--c-muted); line-height: 1.6; margin-bottom: 22px; }

.auth-google-btn { display: flex; justify-content: center; min-height: 40px; margin-bottom: 18px; }
.auth-google-btn:empty { display: none; }

.auth-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.auth-divider.auth-divider-hidden { display: none; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12.5px; font-weight: 600; color: var(--c-text); text-transform: uppercase; letter-spacing: .4px; }
.auth-field input {
  border: 2px solid var(--c-border); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; color: var(--c-text); font-family: var(--font);
  outline: none; width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-field input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }

.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }

.auth-result { font-size: 13.5px; padding: 10px 14px; border-radius: 8px; display: none; }
.auth-result.show { display: block; }
.auth-result.success { background: #D1FAE5; color: #065F46; }
.auth-result.error   { background: #FEE2E2; color: #991B1B; }

.auth-switch { font-size: 13.5px; color: var(--c-muted); text-align: center; margin-top: 18px; }
.auth-switch a { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

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

/* My Account page */
.account-card h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.account-info-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin-bottom: 20px;
  background: var(--c-bg); border-radius: 12px; border: 1.5px solid var(--c-border);
}
.account-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-grad); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.account-email { font-weight: 700; font-size: 14.5px; color: var(--c-dark); }
.account-since { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.account-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
}
.account-divider::before, .account-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

.account-sub-card { padding: 18px; border-radius: 12px; border: 1.5px solid var(--c-border); margin-bottom: 24px; }
.account-sub-active { background: linear-gradient(135deg,#F5F3FF,#FDF2F8); border-color: rgba(124,58,237,.25); }
.account-sub-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--c-grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.account-sub-badge.account-sub-free { background: var(--c-muted); }
.account-sub-plan { font-size: 20px; font-weight: 800; color: var(--c-dark); margin-bottom: 4px; }
.account-sub-desc { font-size: 13px; color: var(--c-muted); line-height: 1.5; }
.account-sub-since { font-size: 12px; color: var(--c-muted); margin-top: 8px; }
.account-refund-form { margin-top: 4px; }
.account-refund-form textarea {
  width: 100%; border: 2px solid var(--c-border); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: var(--font); resize: vertical; outline: none;
}
.account-refund-form textarea:focus { border-color: var(--c-primary); }
