/* ============================================
   AUTH SYSTEM — Global Stylesheet
   Theme: Dark Elegance + Glass Morphism
   Font: Cormorant Garamond + DM Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  --bg-base:        #0a0a0f;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-input:       rgba(255, 255, 255, 0.06);
  --border:         rgba(255, 255, 255, 0.10);
  --border-focus:   rgba(182, 149, 90, 0.70);
  --gold:           #b6955a;
  --gold-light:     #d4af6e;
  --gold-glow:      rgba(182, 149, 90, 0.25);
  --text-primary:   #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.50);
  --text-muted:     rgba(240, 236, 228, 0.30);
  --error:          #e07070;
  --error-bg:       rgba(224, 112, 112, 0.10);
  --success:        #70c49a;
  --success-bg:     rgba(112, 196, 154, 0.10);
  --radius:         14px;
  --transition:     cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ─── Animated Background ────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(182,149,90,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(90,112,182,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(182,149,90,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.03); }
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ─── Page Wrapper ───────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 100vh;
}

/* ─── Auth Card ──────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 32px 80px rgba(0,0,0,0.5),
    0 0 60px var(--gold-glow);
  animation: cardReveal 0.6s var(--transition) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ─── Brand / Logo ───────────────────────────── */
.brand {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeDown 0.5s var(--transition) 0.1s both;
}

.brand-icon {
  width: 52px;
  height: 52px;
  /*background: linear-gradient(135deg, var(--gold), var(--gold-light));*/
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  /*box-shadow: 0 8px 24px var(--gold-glow);*/
}

.brand h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand h1 span { color: var(--gold); font-style: italic; }

.brand p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ─── Form ───────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: fadeUp 0.5s var(--transition) both;
}

.form-group:nth-child(1) { animation-delay: 0.15s; }
.form-group:nth-child(2) { animation-delay: 0.22s; }
.form-group:nth-child(3) { animation-delay: 0.29s; }
.form-group:nth-child(4) { animation-delay: 0.36s; }

label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
  filter: grayscale(100%) brightness(250%);
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 13px 16px 13px 42px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  letter-spacing: 0.01em;
}

input::placeholder { color: var(--text-muted); }

input:focus {
  border-color: var(--border-focus);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

input:focus + .toggle-pw .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--gold);
}

/* Password toggle */
.toggle-pw {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.toggle-pw:hover { color: var(--gold); }

/* ── Remember / Forgot row ── */
  .row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    user-select: none;
  }
  .remember input[type="checkbox"] {
    appearance: none;
    width: 16px; height: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
  }
  .remember input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
  }
  .remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: 2px solid var(--text-primary);
    border-top: none; border-left: none;
    transform: rotate(45deg);
  }

  .forgot {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .forgot:hover { color: var(--gold-light); }

/* ─── Divider ────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ─── Buttons ────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  border-radius: var(--radius);
  color: #1a1408;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s var(--transition), box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px var(--gold-glow);
  animation: fadeUp 0.5s var(--transition) 0.38s both;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--gold-glow); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: block;
  text-align: center;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* ─── Alert Messages ─────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
  animation: slideIn 0.3s var(--transition);
}
.alert-error   { background: var(--error-bg);   border: 1px solid rgba(224,112,112,0.25); color: var(--error); }
.alert-success { background: var(--success-bg); border: 1px solid rgba(112,196,154,0.25); color: var(--success); }
.alert-icon    { flex-shrink: 0; font-size: 15px; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer Link ────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.83rem;
  color: var(--text-muted);
  animation: fadeUp 0.5s var(--transition) 0.45s both;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-footer a:hover { color: var(--gold-light); text-decoration: underline; }

/* ─── Dashboard Specific ─────────────────────── */
.dashboard-body {
  overflow: auto;
  align-items: flex-start;
  padding: 0;
}

.dashboard-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0px auto;
  padding: 10px 20px;
  /*animation: cardReveal 0.6s var(--transition) both;*/
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.dash-brand h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--error);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-logout:hover { border-color: var(--error); color: var(--error); background: var(--error-bg); }

.welcome-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px var(--gold-glow);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.welcome-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.welcome-banner h2 span { color: var(--gold); }

.welcome-banner span { text-transform: uppercase; }

.welcome-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 15px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, transform 0.25s;
  animation: fadeUp 0.5s var(--transition) both;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.18s; }
.stat-card:nth-child(3) { animation-delay: 0.26s; }
.stat-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.stat-icon { font-size: 24px; margin-bottom: 12px; }
.stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; color: var(--gold); }

.btn-checkin {
  padding: 24px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  /*background: rgba(112,196,154,0.15);*/
  /*border: 1px solid rgba(112,196,154,0.3);*/
  background: var(--success);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, transform 0.25s;
  animation: fadeUp 0.5s var(--transition) both;
  cursor: pointer;
}

.btn-checkin:hover { background: #5aa680; transform: translateY(-3px); }

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px;
  margin-bottom: 15px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.5s var(--transition) 0.3s both;
}

.info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row-label { color: var(--text-secondary); width: 120px; flex-shrink: 0; }
.info-row-value { color: var(--text-primary); font-weight: 500; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(112,196,154,0.15);
  border: 1px solid rgba(112,196,154,0.3);
  color: var(--success);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header-flex h3 {
    margin: 0;
    padding: 0;
    border: none; /* Remove previous underline if any */
}

/* Compact date picker */
.input-date-small {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 0px 4px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
}

/* Small text-based clear button */
.btn-clear-link {
    background: none;
    border: none;
    color: var(--gold); /* Or your primary color */
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    margin-left: 8px;
    opacity: 0.8;
}

.btn-clear-link:hover {
    opacity: 1;
}

/* 容器头部微调 */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.view-all {
    font-size: 0.8rem;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    float: right;
}

/* 列表容器 */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: -10px;
    height: 275px;
    overflow-y: auto;
}

/* 单个列表项 */
.report-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 12px 12px 6px;
    background: rgba(255, 255, 255, 0.03); /* 轻微背景色区分 */
    border-left: 10px solid var(--gold); /* 左侧装饰线 */
    border-radius: 6px;
    transition: background 0.3s ease;
}

.report-item:active {
    background: rgba(255, 255, 255, 0.08); /* 手机点击反馈 */
}

/* 图标部分 */
.report-icon {
    margin-right: 4px;
    margin-top: 12px;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 内容区域 */
.report-content {
    flex: 1;
}

.report-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.purpose-tag {
    font-family: 'Khmer OS';
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.report-time {
    font-size: 0.8rem;
    color: #888;
}

.report-location {
    font-size: 0.75rem;
    color: #666;
    word-break: break-all; /* 防止长经纬度溢出 */
}

.report-location a {
    color: #5d9cec;
    text-decoration: none;
}

/* 适配超小屏幕 */
@media (max-width: 360px) {
    .report-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .report-time {
        margin-top: 2px;
    }
}

/* 弹窗蒙层 */
#modalOverlay, #successModal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 100; 
    justify-content: center; 
    align-items: center; 
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px); /* 背景模糊效果 */
}

/* 弹窗容器 */
.modal-box { 
    background: #666666; 
    width: 90%; 
    padding: 30px; 
    margin: 10% auto;
    border-radius: 16px; 
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: fixed; 
    top: 0;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-card {
    position: fixed;
    top: 30%;
}

.modal-card h2 { 
    margin-top: 0; 
    color: var(--text-primary);
}

/* 表单样式 */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 { 
    margin: 0; 
    color: var(--gold);
}

.modal-box .form-group { margin-bottom: 20px; }

.modal-box label { font-weight: 500; color: var(--text-primary); }

.modal-box select {
    font-size: 14px;
    width: 100%;
    height: 45px;
    color: var(--text-primary);
    background: #333333;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    cursor: pointer;
}

.modal-box select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modal-box input[type="text"] {
    font-size: 14px;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    background: #333;
    color: var(--text-primary);
}

.modal-box input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.modal-box input[type="text"]:disabled { border: 1px solid #aaa; background: #666;}

.btn-submit { 
    color: #1a1408; 
    border: 1px solid var(--gold); 
    width: 100%; 
    padding: 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s var(--transition), box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 20px var(--gold-glow);
    animation: fadeUp 0.5s var(--transition) 0.38s both;
    position: relative;
    overflow: hidden;
}

.btn-submit::after, .btn-cancel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-submit:hover { box-shadow: 0 8px 32px var(--gold-glow); }
.btn-submit:hover::after, .btn-cancel:hover::after { opacity: 1; }
.btn-submit:active, .btn-cancel:active { transform: translateY(0); }
.btn-submit:disabled { 
    background: transparent; 
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: not-allowed; 
    pointer-events: none;
    box-shadow: none;
}

.btn-cancel { 
    background: transparent; 
    color: var(--gold); 
    border: 1px solid var(--gold); 
    width: 100%; 
    padding: 12px; 
    border-radius: 8px; 
    cursor: pointer; 
    margin-top: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s var(--transition), box-shadow 0.2s, opacity 0.2s;
    animation: fadeUp 0.5s var(--transition) 0.38s both;
    position: relative;
    overflow: hidden;
}

#status {
    color: var(--text-primary);
    margin-top: 10px;
}

/* 加载动画遮罩 */
#loadingOverlay { 
    display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(120,120,120,0.9); 
    z-index: 110; 
    border-radius: 10px; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}
.loader { 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid var(--gold-light); 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* Success Icon */
.icon-box {
    width: 60px; 
    height: 60px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 1rem;
}

/* ─── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 480px) {
  .auth-card     { padding: 32px 24px; }
  .welcome-banner { padding: 24px; }
  .dash-header   { flex-direction: column; align-items: flex-start; }
}
