:root {
  --primary: #25a194;
  --primary-rgb: 37, 161, 148;
  --secondary: #0f172a;
  --glass: rgba(255, 255, 255, 0.4);
  --inner-glass: rgba(255, 255, 255, 0.9);
  --glow: rgba(37, 161, 148, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Ambient Glow Background */
body::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--glow) 0%,
    rgba(37, 161, 148, 0) 70%
  );
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.3;
}

.portal-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 550px;
  padding: 20px;
}

/* Luxury Double Glass Card */
.outer-shell {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 60px;
  padding: 20px;
  /* Decorative spacing */
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.2);
  animation: portalFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes portalFadeUp {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(-5deg) translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
  }
}

.inner-core {
  background: var(--inner-glass);
  border-radius: 45px;
  padding: 50px 40px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Floating Centered Logo Halo */
.logo-halo {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -100px auto 30px;
  /* Pulled up even further */
  box-shadow: 0 15px 35px rgba(37, 161, 148, 0.2);
  border: 4px solid var(--inner-glass);
  position: relative;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-halo:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-halo img {
  height: 48px;
}

.login-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.login-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.input-group-premium {
  margin-bottom: 24px;
  text-align: left;
}

.input-group-premium label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 10px;
  padding-left: 10px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper iconify-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #cbd5e1;
  transition: 0.3s;
}

.form-input {
  width: 100%;
  height: 64px;
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  padding: 0 25px 0 60px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.15);
}

.form-input:focus ~ iconify-icon {
  color: var(--primary);
}

.btn-unlock {
  width: 100%;
  height: 64px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
}

.btn-unlock:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(var(--primary-rgb), 0.4);
}

.error-message {
  color: #ef4444;
  font-size: 0.825rem;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
}

footer {
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}
.login-header .login-logo {
  margin-bottom: 40px;
}
/* Precise Mobile Responsiveness */
@media (max-width: 480px) {
  .outer-shell {
    padding: 10px;
    border-radius: 40px;
  }

  .inner-core {
    padding: 40px 25px 30px;
    border-radius: 30px;
  }

  .logo-halo {
    margin-top: -80px;
  }
}
@media (max-width: 768px) {
  body::before {
    width: 100%;
    height: 100%;
  }
  .btn-unlock {
    height: 56px;
    font-size: 14px;
    font-weight: 500;
  }
}
