/* Login - Form tengah, judul atas, font menarik, animasi */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Archivo+Black&display=swap');

.login-page,
.login-page * {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: #1e3a5f;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(30,58,95,0.4) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%),
    url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?w=1200&q=85') center/cover no-repeat;
  z-index: 0;
}

/* Judul atas tengah */
.login-title {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  animation: titleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-title .logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.login-title .tagline {
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

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

/* Form card - tengah */
.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  animation: formSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

.login-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 50%, rgba(241,245,249,0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(30, 58, 95, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(30, 58, 95, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.login-card .card-body {
  padding: 2.25rem;
  position: relative;
  z-index: 1;
}

.login-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.login-header h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #1e3a5f;
  margin-bottom: 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-header p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Form */
.login-card .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.login-card .form-control {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: inputReveal 0.5s ease both;
}

.login-card .mb-3:nth-child(1) .form-control { animation-delay: 0.3s; }
.login-card .mb-3:nth-child(2) .form-control { animation-delay: 0.4s; }

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

.login-card .form-control:hover {
  border-color: #d1d5db;
}

.login-card .form-control:focus {
  border-color: #1e3a5f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.login-card .form-control::placeholder {
  color: #9ca3af;
}

/* Tombol */
.login-card .btn-primary {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  background: #1e3a5f;
  border: none;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: inputReveal 0.5s ease 0.5s both;
}

.login-card .btn-primary:hover {
  background: #2d4a6f;
  transform: translateY(-2px);
}

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

/* Alert - tanpa animasi goyang */
.login-card .alert-danger {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  animation: none !important;
}

/* Pastikan form kotak tidak goyang */
.login-card {
  animation: none !important;
}

@media (max-width: 480px) {
  .login-page { padding: 1.5rem; }
  .login-title .logo-text { font-size: 1.5rem; letter-spacing: 0.08em; }
  .login-card .card-body { padding: 1.75rem; }
}
