/* https://codepen.io/nironjon-roy/pen/KwdJGOw */

.panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInScale 0.6s ease;
    padding: 30px;
}

.panel-title {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #e0e0ff;
    text-align: center;
}

.panel .info {
  color: lightgray;
  text-align: center;
  margin-top: 40px;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 16px;
  line-height: 25px;
}

.form-panel {
  width: 60%;
  max-width: 500px;
  background: rgba(25, 30, 40, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: fadeInScale 0.6s ease;
  padding: 3px;
  border-radius: 10px;
  margin: auto;
  margin-top: 60px;
}

.form-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: conic-gradient(#00ff00, hsl(256, 100%, 50%), hsl(312, 100%, 50%));
  animation: rotateBg 6s linear infinite;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.options a {
  color: #c0c0c0;
}

/* rotation animation */
@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group input, .input-group textarea {
  width: 100%;
  background: rgba(35, 40, 50, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.input-group input {
  padding: 14px 14px 14px 45px;
}

.input-group span {
  padding: 4px 4px 4px 45px;
}

.input-group textarea {
  padding: 14px 14px 14px 14px;
}

.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: #48dbfb;
  box-shadow: 0 0 8px rgba(72, 219, 251, 0.4);
}

.icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c5ce7;
}

.tab {
  background: rgba(31, 36, 46, 0.9);
  flex: 1;
  padding: 20px;
  text-align: center;
  font-weight: 300;
  transition: all 0.3s ease;
  position: relative;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.tab.active {
  font-size: 24px;
  color: #48dbfb;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6c5ce7, #48dbfb);
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.form-container {
  padding: 30px;
  background: rgb(13, 17, 23);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.form {
  display: none;
}
.form.active {
  display: block;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}
.remember {
  display: flex;
  align-items: center;
}
.remember input {
  margin-right: 6px;
  accent-color: #6c5ce7;
}
.forgot {
  color: #48dbfb;
  text-decoration: none;
}
.forgot:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #48dbfb, #0EBEFF);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.btn-login:hover::before {
  left: 100%;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

.separator {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #888;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.separator span {
  margin: 0 10px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .form-container {
    padding: 20px;
  }
  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
