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

.login-page {
  height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.split-layout {
  display: flex;
  width: 100%;
  height: 100vh;
}

.split-left {
  width: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.split-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(30,58,95,0.4) 0%, transparent 50%);
  animation: ambientShift 15s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}

.split-left::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: glow 8s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { opacity: 0.5; transform: translate(0, 0); }
  100% { opacity: 1; transform: translate(-30px, 30px); }
}

.brand-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.brand-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 36px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: fadeInUp 0.8s ease-out;
}
.brand-icon-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
}

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

.brand-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.brand-content > p {
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 44px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.brand-features {
  text-align: left;
  display: inline-block;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  animation: fadeInUp 0.6s ease-out both;
}
.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }
.feature-item:nth-child(4) { animation-delay: 0.6s; }
.feature-item:nth-child(5) { animation-delay: 0.7s; }

.feature-item i {
  color: #4ade80;
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(74,222,128,0.3));
}

.brand-copy {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.45;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.brand-dev {
  margin-top: 80px;
  font-size: 16px;
  color: #fff;
  opacity: 0.9;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.split-right {
  width: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.split-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(37,99,235,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(59,130,246,0.03) 0%, transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.06),
    0 24px 64px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.auth-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.auth-form .form-group {
  margin-bottom: 20px;
}
.auth-form .form-group:last-of-type {
  margin-bottom: 24px;
}

.auth-form .form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.auth-form .form-group > label i {
  width: 16px;
  margin-right: 4px;
  color: #2563eb;
}

.auth-form .input-group {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.auth-form .input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12), 0 2px 8px rgba(37,99,235,0.06);
}

.auth-form .input-group .input-group-text {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-right: none;
  color: #94a3b8;
  font-size: 14px;
  padding: 0 14px;
  transition: all 0.3s ease;
}

.auth-form .input-group .input-group-text:last-child {
  border-left: none;
  border-right: 2px solid #e2e8f0;
}

.auth-form .input-group .form-control {
  border-radius: 0;
}

.auth-form .form-control {
  border: 2px solid #e2e8f0;
  padding: 13px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  color: #0f172a;
  caret-color: #2563eb;
}

.auth-form .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 0.7;
}

.auth-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: none;
  outline: none;
}

.auth-form .input-group:focus-within .input-group-text {
  border-color: #2563eb;
  color: #2563eb;
  background: #fff;
}

.auth-form .input-group:focus-within .form-control {
  border-color: #2563eb;
}

.auth-form .input-group:focus-within .input-group-text:last-child {
  border-color: #2563eb;
}

.toggle-password {
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}
.toggle-password:hover {
  color: #2563eb;
}

.auth-card .alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  margin-bottom: 20px;
}

.auth-card .alert-danger i {
  font-size: 16px;
}

.auth-form .btn-primary,
.btn-login {
  padding: 13px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.auth-form .btn-primary::before,
.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

.auth-form .btn-primary:hover,
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
  background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
}

.auth-form .btn-primary:active,
.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.auth-form .btn-outline-secondary {
  border-radius: 12px;
  padding: 11px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  color: #64748b;
}

.auth-form .btn-outline-secondary:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37,99,235,0.04);
}

.forgot-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

.auth-form .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.auth-form .form-check-input {
  border-color: #cbd5e1;
  cursor: pointer;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.auth-footer p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

@media (max-width: 768px) {
  .split-left { display: none; }
  .split-right { width: 100%; padding: 20px; }
  .auth-card { padding: 28px 24px; border-radius: 16px; }
}
