html,
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
}

body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 32px) 16px;
  background: radial-gradient(115% 115% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #0f172a 0%, #1e40af 45%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

body.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 55% at 100% 0%, rgba(14, 165, 233, 0.45), transparent),
    radial-gradient(30% 40% at 0% 100%, rgba(59, 130, 246, 0.4), transparent);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.login-wrap {
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 32px;
}

.login-floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(14, 165, 233, 0.1));
  filter: blur(0);
  opacity: 0.7;
  animation: float 14s ease-in-out infinite;
  z-index: 0;
}

.login-floating-shape.shape-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
  animation-delay: 0.6s;
}

.login-floating-shape.shape-2 {
  width: 240px;
  height: 240px;
  bottom: -60px;
  left: -40px;
  animation-delay: 1.4s;
}

.login-floating-shape.shape-3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2.1s;
  opacity: 0.4;
}

.login-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.login-illustration {
  color: #f8fafc;
  padding: 56px 48px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.login-illustration::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  z-index: 0;
}

.login-illustration > * {
  position: relative;
  z-index: 1;
}

.login-illustration h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.login-illustration p {
  margin: 0;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.85);
}

.login-illustration-features {
  display: grid;
  gap: 16px;
}

.login-illustration-features li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.9);
}

.login-illustration-features .login-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.login-card {
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideUp 0.9s ease forwards;
}

.login-card .logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.32);
}

.login-card .login-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #0ea5e9 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.login-card .login-subtitle {
  color: rgba(71, 85, 105, 0.85);
  margin-bottom: 32px;
}

.login-form .input-group.custom {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 4px;
  background: rgba(241, 245, 249, 0.75);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  margin-bottom: 20px;
}

.login-form .input-group.custom:focus-within {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.login-form .form-control {
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 14px 18px;
  color: #1f2937;
  box-shadow: none !important;
}

.login-form .form-control::placeholder {
  color: rgba(100, 116, 139, 0.85);
}

.login-mode-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.login-mode-option {
  position: relative;
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.login-mode-option span {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(30, 41, 59, 0.8);
}

.login-mode-option input:checked + span {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.25));
  color: rgba(15, 23, 42, 0.95);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.35);
}

.login-input-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 8px;
}

.login-form .input-group-text {
  border: none;
  background: transparent;
  color: #0f172a;
  padding-right: 14px;
}

.login-form .input-group-text .ekk-icon {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(203, 213, 225, 0.12));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.login-form .input-group-text .ekk-icon::before {
  opacity: 0.3;
}

.login-form .btn-login {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%);
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.6s ease;
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.35);
}

.login-form .btn-login:hover,
.login-form .btn-login:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #1d4ed8 100%);
}

.login-form .alert {
  border-radius: 14px;
  border: none;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.login-form .close {
  color: inherit;
  opacity: 0.6;
}

.login-meta {
  color: #64748b;
  font-size: 0.9375rem;
  margin-top: 16px;
  text-align: center;
}

.login-meta a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-meta a:hover {
  color: #1d4ed8;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -24px, 0) scale(1.05);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(35px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1199.98px) {
  .login-card {
    padding: 40px 32px;
  }
}

@media (max-width: 991.98px) {
  .login-content {
    border-radius: 24px;
    border: none;
  }

  .login-card {
    padding: 40px 28px;
  }
}

@media (max-width: 767.98px) {
  html,
  body {
    overflow: auto;
  }

  body.login-page {
    padding: 32px 16px;
  }

  .login-wrap {
    border-radius: 24px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .login-form .input-group.custom {
    border-radius: 14px;
  }
}

