/* =====================================================
   login.css — Premium Glassmorphism Login Page
   ===================================================== */

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

body.login-page {
  background: radial-gradient(circle at 10% 20%, rgb(99, 102, 241) 0%, rgb(79, 70, 229) 90%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Kantumruy Pro', 'Noto Sans Khmer', 'Khmer OS', -apple-system, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Background blob decorations for premium modern abstract look */
body.login-page::before,
body.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

body.login-page::before {
  width: 300px;
  height: 300px;
  background-color: #10b981;
  top: 10%;
  left: -100px;
}

body.login-page::after {
  width: 400px;
  height: 400px;
  background-color: #6366f1;
  bottom: 5%;
  right: -150px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  z-index: 1;
}

/* Glassmorphism Card styling */
.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Logo icon design */
.login-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: rotate(10deg) scale(1.05);
}

.login-logo svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 2.25rem;
  font-weight: 500;
}

/* Form fields customization */
.login-card .form-control {
  min-height: 48px;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.25s ease;
}

.login-card .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}

.login-card .form-label {
  font-weight: 600;
  color: #334155;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Checkbox adjustment */
.login-card .form-check-input {
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.3rem;
  border-color: #cbd5e1;
  cursor: pointer;
}

.login-card .form-check-input:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}

.login-card .form-check-label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* Button animation */
.login-card .btn-primary {
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.login-card .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

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

/* Validation Alert box */
.login-card .alert-danger {
  border: none;
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 0.85rem;
  border-radius: 0.75rem;
  padding: 1rem;
  font-weight: 500;
}
