a {
  text-decoration: none;
  color: white;
}

a::after {
  content: "";
}

a:hover::after {
  display: block;
  border: 1px solid white;
  animation: under-line 0.5s ease-in-out 1;
}

@keyframes under-line {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

section {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: url(https://images2.alphacoders.com/130/1308322.jpeg) center; */
  background-size: cover;
  color: #fff;
}

.login-container {
  background: #48b16d;
  /* height: 450px; */
  padding: 50px 20px;
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(5px);
  border: 1px white solid;
  border-radius: 20px;
  box-sizing: border-box;
}

h2 {
  font-size: 1.75em;
  margin: 0 0 10px;
  filter: drop-shadow(0 3px 2px black);
}

.input-box {
  position: relative;
  border-bottom: 2px solid white;
  margin: 20px 0;
  width: 100%;
  max-width: 310px;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1em;
  transition: 0.5s;
}

.input-box input:valid ~ label,
.input-box input:focus ~ label,
.input-box textarea:valid ~ label,
.input-box textarea:focus ~ label {
  top: -5px;
}

.input-box input,
.input-box textarea,
.input-box select {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 100%;
  height: 50px;
  font-size: 1em;
  padding: 0 40px 0 5px;
}
.input-box option {
  background: #ddd;
}

.input-box .icon {
  position: absolute;
  right: 8px;
  font-size: 1.4em;
  line-height: 45px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 310px;
  margin: 0 0 20px;
}

button {
  height: 40px;
  width: 100%;
  max-width: 310px;
  border-radius: 20px;
  margin: 0 0 10px;
  outline: none;
  border: none;
  background: white;
  color: black;
  transition: 0.3s;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.create-account {
  margin: 12px 0 0 0;
}

@media screen and (max-width: 480px) {
  body:has(.login-container) {
    background: linear-gradient(135deg, var(--form-color, #48b16d) 0%, color-mix(in srgb, var(--form-color, #48b16d) 75%, #000) 100%) !important;
  }

  section:has(.login-container) {
    background: transparent !important;
  }

  .login-container {
    width: 92% !important;
    max-width: 380px !important;
    height: auto !important;
    min-height: auto !important;
    border: 1px white solid !important;
    border-radius: 20px !important;
    padding: 40px 20px !important;
    margin: 20px auto !important;
    box-shadow: none !important;
  }
}

/* Coaching Institute Design Upgrades (Surgical & Non-Destructive) */
.login-container {
  background: linear-gradient(135deg, var(--form-color, #48b16d) 0%, color-mix(in srgb, var(--form-color, #48b16d) 75%, #000) 100%) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Course Cards on Shared Landing Page */
.class {
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #f1f5f9 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.class:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--primary-color) !important;
}

.class img {
  width: 100% !important;
  height: auto !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.class p {
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #334155 !important;
}

.class .btn-primary {
  background: linear-gradient(135deg, var(--primary-color, #48b16d) 0%, var(--primary-color-sec, #388e3c) 100%) !important;
  border: none !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.class .btn-primary:hover {
  opacity: 0.9 !important;
  transform: scale(1.02) !important;
}
