/* Auth shared styles */
.auth-container {
  max-width: 440px; margin: 120px auto 60px; padding: 0 20px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
}
.auth-card h1 { font-family: var(--font-display); font-size: 32px; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }

.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.auth-tab { flex: 1; padding: 12px; text-align: center; cursor: pointer; font-weight: 600; font-size: 14px; background: transparent; color: var(--text-muted); border: none; transition: all 0.2s; }
.auth-tab.active { background: rgba(168,85,247,0.15); color: var(--accent); }
.auth-tab:hover { color: var(--text); }

.auth-btn {
  width: 100%; padding: 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.2s; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 30px rgba(124,58,237,0.4); }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-apple { background: #000; color: #fff; }
.btn-phone { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

.divider {
  display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-muted); font-size: 13px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.error-msg { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; display: none; }
.success-msg { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; display: none; }

#phoneFields { display: none; }
.phone-row { display: flex; gap: 8px; }
.phone-row select {
  width: 140px; padding: 14px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); font-size: 14px;
  outline: none; cursor: pointer;
}

/* Dark form inputs — all pages */
.form-group input, .edit-input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #ddd;
  font-size: 15px; outline: none; transition: all 0.2s; font-family: var(--font-body);
}
.form-group input:focus, .edit-input:focus {
  border-color: rgba(168,85,247,0.5); background: rgba(168,85,247,0.05);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.08);
}
.form-group input::placeholder, .edit-input::placeholder { color: rgba(255,255,255,0.15); }

/* Kill white autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #ddd !important;
  -webkit-box-shadow: 0 0 0 1000px #14141f inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #ddd;
}

/* Account page */
.account-header {
  padding: 120px 0 40px; text-align: center;
}
.account-card {
  max-width: 600px; margin: 0 auto 60px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.account-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: rgba(168,85,247,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 16px;
}
.account-info { margin-bottom: 24px; }
.account-info p { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.account-info .label { color: var(--text-muted); font-size: 13px; }
.account-info .value { font-weight: 600; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.acct-btn {
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg); color: var(--text);
  transition: all 0.2s;
}
.acct-btn:hover { border-color: var(--accent); color: var(--accent); }
.acct-btn.danger { color: #ef4444; border-color: rgba(239,68,68,0.3); }
.acct-btn.danger:hover { background: rgba(239,68,68,0.1); }

/* Role badge */
.role-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.role-guest { background: rgba(168,85,247,0.2); color: var(--accent); }
.role-staff { background: rgba(34,197,94,0.2); color: #4ade80; }
.role-owner { background: rgba(251,191,36,0.2); color: #fbbf24; }

/* Edit profile inline styles */
.edit-section { margin-bottom: 20px; }
.edit-section h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.edit-grid { display: flex; flex-direction: column; gap: 12px; }
.inline-row { display: flex; gap: 8px; align-items: center; }
.save-btn {
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
  border: none; background: linear-gradient(135deg, #7c3aed, #a855f7); color: white;
  font-size: 13px; white-space: nowrap; transition: all 0.2s;
}
.save-btn:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(124,58,237,0.4); }
.save-btn:active { transform: scale(0.97); }
