@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #faf9f6;
  color: #1a1a2e;
}

/* ── Top Navigation ── */
.navbar-portal {
  background: #0f1923 !important;
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(15, 25, 35, 0.15);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-portal .navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-portal .brand-emblem {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c9a84c;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* ── Login Page Background ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f6;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(26, 26, 46, 0.04) 0%, transparent 50%);
  padding: 2rem 1rem;
  position: relative;
}

/* ── Decorative Background Element ── */
.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a84c, #1a1a2e, #c9a84c);
  opacity: 0.6;
}

/* ── Login Card ── */
.portal-login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 1px 3px rgba(26, 26, 46, 0.06),
    0 8px 32px rgba(26, 26, 46, 0.08);
  position: relative;
  animation: cardIn 0.5s ease-out;
  border: 1px solid rgba(26, 26, 46, 0.06);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.25rem;
  right: 2.25rem;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #1a1a2e);
  border-radius: 0 0 3px 3px;
}

.portal-login-card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: #c9a84c;
}

.portal-login-card h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.65rem;
  color: #1a1a2e;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.portal-login-card .card-subtitle {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Form Elements ── */
.portal-login-card .form-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.portal-login-card .form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #faf9f6;
  transition: all 0.2s ease;
}

.portal-login-card .form-control:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
  background: #ffffff;
}

.portal-login-card .form-control::placeholder {
  color: #a0aec0;
  font-size: 0.875rem;
}

/* ── Buttons ── */
.btn-login {
  background: #1a1a2e;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-login:hover {
  background: #2a2a4a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.2);
}

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

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid #c9a84c;
  border-radius: 10px;
  padding: 0.7rem 1.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #c9a84c;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: rgba(201, 168, 76, 0.08);
  color: #b8962e;
  border-color: #b8962e;
}

/* ── Alert Messages ── */
.alert-custom {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: alertIn 0.4s ease-out;
}

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

.alert-custom.alert-success {
  background: #f0faf0;
  color: #2d6a2d;
  border-left: 4px solid #38a169;
}

.alert-custom.alert-danger {
  background: #fef2f2;
  color: #9b2c2c;
  border-left: 4px solid #e53e3e;
}

/* ── Modal ── */
.modal-custom .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(26, 26, 46, 0.15);
  padding: 0.5rem;
}

.modal-custom .modal-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 1.25rem 1.5rem 0.75rem;
}

.modal-custom .modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.modal-custom .modal-header .btn-close {
  font-size: 0.8rem;
}

.modal-custom .modal-body {
  padding: 1.25rem 1.5rem;
}

.modal-custom .modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 0.75rem 1.5rem 1.25rem;
}

/* ── Footer ── */
#footer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b8299;
  background: #0f1923;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255,255,255,0.05);
}

#footer p {
  margin: 0;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .portal-login-card {
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
  }

  .portal-login-card h2 {
    font-size: 1.35rem;
  }

  .portal-login-card::before {
    left: 1.5rem;
    right: 1.5rem;
  }

  .btn-login,
  .btn-outline-gold {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}