/* === Login / Auth Page === */
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Noto+Sans+TC:wght@300..900&display=swap");

:root {
  --auth-bg: #0d0d26;
  --auth-card-bg: rgba(22, 33, 62, 0.85);
  --auth-border: rgba(3, 215, 244, 0.15);
  --ci-cyan: rgb(3, 215, 244);
  --ci-blue: rgb(0, 124, 255);
}

/* Light Theme */
[data-bs-theme="light"] .auth-body {
  background: #f0f2f5;
}

[data-bs-theme="light"] .auth-deco-1 {
  background: radial-gradient(circle, rgba(0, 124, 255, 0.06) 0%, transparent 70%);
}

[data-bs-theme="light"] .auth-deco-2 {
  background: radial-gradient(circle, rgba(63, 29, 177, 0.06) 0%, transparent 70%);
}

[data-bs-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e0e0e0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .auth-brand {
  color: #1a1a2e;
}

[data-bs-theme="light"] .auth-subtitle {
  color: #6c757d;
}

[data-bs-theme="light"] .auth-tab {
  color: #6c757d;
}

[data-bs-theme="light"] .auth-tab:hover {
  color: #333;
}

[data-bs-theme="light"] .auth-tab.is-active {
  color: #fff;
}

[data-bs-theme="light"] .auth-card .form-label {
  color: #495057;
}

[data-bs-theme="light"] .auth-card .input-group-text {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

[data-bs-theme="light"] .auth-card .form-control {
  background: #fff;
  border-color: #dee2e6;
  color: #212529;
}

[data-bs-theme="light"] .auth-card .form-control::placeholder {
  color: #adb5bd;
}

[data-bs-theme="light"] .auth-card .form-control:focus {
  background: #fff;
  border-color: var(--ci-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 124, 255, 0.15);
  color: #212529;
}

[data-bs-theme="light"] .auth-footer {
  border-top-color: #e0e0e0;
  color: #adb5bd;
}

[data-bs-theme="light"] .auth-tabs {
  background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .action-btn {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #6c757d;
}

[data-bs-theme="light"] .action-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: #333;
}

[data-bs-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e0e0e0;
}

[data-bs-theme="light"] .lang-item {
  color: #495057 !important;
}

[data-bs-theme="light"] .lang-item:hover {
  background-color: rgba(0, 124, 255, 0.06);
  color: #212529 !important;
}

/* Body */
.auth-body {
  min-height: 100vh;
  background: var(--auth-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Noto Sans TC", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.auth-deco-1 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 215, 244, 0.08) 0%, transparent 70%);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.auth-deco-2 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 29, 177, 0.1) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 40px 36px 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

/* Logo */
.login-logo {
  height: 40px;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* Brand & subtitle */
.auth-brand {
  font-family: "Chakra Petch", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 4px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.auth-tab:hover {
  color: rgba(255, 255, 255, 0.75);
}

.auth-tab.is-active {
  background: var(--ci-cyan);
  color: #0d0d26;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(3, 215, 244, 0.3);
}

/* Form elements */
.auth-card .form-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.auth-card .input-group-text {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--auth-border);
  color: rgba(255, 255, 255, 0.5);
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--auth-border);
  color: #fff;
}

.auth-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ci-cyan);
  box-shadow: 0 0 0 0.2rem rgba(3, 215, 244, 0.15);
  color: #fff;
}

/* Auth button */
.btn-auth {
  background: linear-gradient(135deg, var(--ci-blue), var(--ci-cyan));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(3, 215, 244, 0.35);
  color: #fff;
}

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

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-border);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

/* Top action buttons (theme & language) */
.top-actions {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.25s ease;
  cursor: pointer;
}

.action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lang-menu {
  background: rgba(22, 33, 62, 0.95);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 150px;
  border: 1px solid var(--auth-border);
  backdrop-filter: blur(12px);
}

.lang-item {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 10px 16px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.lang-item:hover {
  background-color: rgba(3, 215, 244, 0.08);
  color: #fff !important;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    margin: 16px;
    padding: 32px 24px 24px;
  }
}
