@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #1e1e28;
  gap: 25px;
}

.login-logo {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.login-logo:hover {
  transform: scale(1.08) rotate(3deg);
}

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.box {
  position: relative;
  width: 400px;
  height: 180px;
  background: repeating-conic-gradient(
    from var(--a),
    #f7aef8 0%,
    #f7aef8 5%,
    transparent 5%,
    transparent 40%,
    #f7aef8 50%
  );
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  animation: rotating 4s linear infinite;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

.box:hover,
.box:focus-within {
  width: 450px;
  height: 300px;
}

@keyframes rotating {
  0% {
    --a: 0deg;
  }
  100% {
    --a: 360deg;
  }
}

.box::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(
    from var(--a),
    #7cdedc 0%,
    #7cdedc 5%,
    transparent 5%,
    transparent 40%,
    #7cdedc 50%
  );
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  border-radius: 20px;
  animation: rotating 4s linear infinite;
  animation-delay: -1s;
}

.box::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #252533;
  border-radius: 15px;
  border: 8px solid #1e1e28;
}

.login {
  position: absolute;
  inset: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  flex-direction: column;
  background: rgba(20, 20, 28, 0.4);
  z-index: 1000;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  transition: 0.5s;
  color: #e2e8f0;
  overflow: hidden;
}

.box:hover .login,
.box:focus-within .login {
  inset: 40px;
}

.loginBx {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: translateY(80px);
  gap: 15px;
  width: 80%;
  transition: 0.5s;
}

.box:hover .loginBx,
.box:focus-within .loginBx {
  transform: translateY(0px);
}

.loginBx h2 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 1.2rem;
  color: #e2e8f0;
}

.loginBx h2 i {
  color: #f7aef8;
  text-shadow: 0 0 10px rgba(247, 174, 248, 0.5);
}

.loginBx input {
  width: 100%;
  padding: 10px 20px;
  outline: none;
  font-size: 1em;
  color: #e2e8f0;
  background: #1a1a24;
  border: 1px solid #3f3f56;
  border-radius: 30px;
}

.loginBx input::placeholder {
  color: #71717a;
}

.loginBx input[type="submit"] {
  background: #7cdedc;
  border: none;
  font-weight: 600;
  color: #181824;
  cursor: pointer;
  transition: 0.5s;
}

.loginBx input[type="submit"]:hover {
  background: #a2e8dd;
  box-shadow: 0 0 15px rgba(124, 222, 220, 0.4);
}

.error-msg {
  color: #f7aef8;
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
  font-weight: 500;
}