/* ChoreQuest Web Portal - Pirate Nautical Theme */
:root {
  --navy-dark: #070e17;
  --ocean-blue: #0f172a;
  --card-bg: #162032;
  --card-border: #27354a;
  --gold-accent: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --ruby-red: #ef4444;
  --ruby-dark: #991b1b;
  --emerald-green: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Poppins', sans-serif;
}

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

body {
  background-color: var(--navy-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

/* Background Subtle Starfield / Grid */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(2px 2px at 20px 30px, #ffffff15, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 140px, #ffffff20, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 250px 220px, #ffffff15, rgba(0,0,0,0));
  background-size: 100% 100%, 100% 100%, 300px 300px, 350px 350px, 400px 400px;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 4px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  background: radial-gradient(circle, #2d3748 0%, #1a202c 100%);
  border: 2px solid var(--gold-accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold-glow);
  margin-bottom: 12px;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.compliance-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  font-size: 11px;
  color: #6ee7b7;
  font-weight: 500;
}

/* Card */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Info Box */
.info-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
}

.info-box h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.info-box p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}
.info-box p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
}
.btn-google:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.google-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-light));
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-apple {
  background: #18181b;
  color: #e4e4e7;
  border: 1px solid #27272a;
}
.btn-apple:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.apple-icon {
  width: 16px;
  height: 16px;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-danger {
  background: linear-gradient(135deg, var(--ruby-red), #dc2626);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}
.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  width: auto;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 2px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--card-border);
}
.divider span {
  padding: 0 10px;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 500;
}

.input-group {
  display: flex;
  gap: 8px;
}

.form-input {
  flex: 1;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--gold-accent);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Email Sent Box */
.email-sent-box {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.email-sent-icon {
  font-size: 32px;
}
.email-sent-box h4 {
  color: #38bdf8;
  font-size: 15px;
}
.email-sent-box p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* User Card */
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.user-avatar {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-accent);
}

.user-details {
  flex: 1;
}

.badge-auth {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-id {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Warning Card */
.warning-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.warning-header h4 {
  color: #f87171;
  font-family: var(--font-heading);
  font-size: 14px;
}

.warning-card p {
  font-size: 12px;
  color: #fca5a5;
  margin-bottom: 8px;
}

.data-list {
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Success Card */
.success-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.success-icon {
  font-size: 48px;
}

.success-card h3 {
  font-family: var(--font-heading);
  color: #34d399;
  font-size: 20px;
}

.success-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.receipt-box {
  background: #0f172a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 12px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
}

.text-green {
  color: #34d399;
}

.receipt-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Alert Box */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Footer */
.footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}
.privacy-note {
  font-size: 10.5px;
  color: var(--gold-accent);
  margin-top: 4px;
}

/* Utilities */
.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .input-group {
    flex-direction: column;
  }
  .card {
    padding: 20px 16px;
  }
}
