/* ============================================
   BANDAR AKI APP — Login Page Styles
   Theme: Black, Yellow, White (Premium Dark)
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: #020617;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Background effects */
.login-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.login-page__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(234, 179, 8, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(234, 179, 8, 0.03) 0%, transparent 50%);
}

.login-page__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.login-page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.login-page__orb--1 {
  width: 400px; height: 400px;
  background: #EAB308;
  top: -150px; right: -100px;
  animation: float 10s ease-in-out infinite;
}

.login-page__orb--2 {
  width: 300px; height: 300px;
  background: #FACC15;
  bottom: -100px; left: -100px;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 30px); }
}

/* Login Card */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-card__inner {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Accent line on top */
.login-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #EAB308, #FACC15);
}

/* Header */
.login-card__header {
  text-align: center;
  margin-bottom: 40px;
}

.login-card__logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #EAB308;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #000;
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.3);
  font-family: 'Outfit', sans-serif;
}

.login-card__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-card__subtitle {
  font-size: 14px;
  color: #94A3B8;
}

/* Form */
.login-form .form-group {
  margin-bottom: 24px;
}

.login-form .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-form .form-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.login-form .form-input:focus {
  border-color: #EAB308;
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.15);
}

.login-form .form-input::placeholder {
  color: #475569;
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748B;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: #EAB308;
}

/* Submit button */
.login-btn {
  width: 100%;
  background: #EAB308;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-btn:hover {
  background: #FACC15;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(234, 179, 8, 0.2);
}

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

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Error message */
.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #F87171;
  animation: slideDown 0.3s ease forwards;
}

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

.login-error.show {
  display: flex;
}

/* Footer link */
.login-card__footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card__footer a {
  font-size: 14px;
  color: #64748B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-card__footer a:hover {
  color: #EAB308;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .login-card__inner { padding: 40px 24px; }
  .login-card__title { font-size: 24px; }
  .login-page { padding: 16px; }
}
