
:root {
  /* COLORS */
  --white: #e9e9e9;
  --gray: #333;
  --blue: #008997;
  --lightblue: #f02409;

  /* RADII */
  --button-radius: 0.7rem;

  /* SIZES */
  --max-width: 758px;
  --max-height: 420px;

  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  align-items: center;
  background-color: var(--white);
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(76, 130, 151, 0.4)),
  url("../image/mrbeast1.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  height: 100vh;
  place-items: center;
}

.form__title {
  font-weight: 300;
  margin: 0;
  margin-bottom: 1.25rem;
  font-size: 20px;
}

.link {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 1.5rem 0;
  text-decoration: none;
}

.container {
  background-color: var(--white);
  border-radius: var(--button-radius);
  box-shadow: 0 0.9rem 1.7rem rgba(0, 0, 0, 0.25),
    0 0.7rem 0.7rem rgba(0, 0, 0, 0.22);
  height: var(--max-height);
  max-width: var(--max-width);
  overflow: hidden;
  position: absolute;
  top: 20rem;
  width: 100%;
}

.container__form {
  height: 100%;
  position: absolute;
  top: 0;
  transition: all 0.6s ease-in-out;
}

.container--signin {
  left: 0;
  width: 50%;
  z-index: 2;
}

.container.right-panel-active .container--signin {
  transform: translateX(100%);
}

.container--signup {
  left: 0;
  opacity: 0;
  width: 50%;
  z-index: 1;
}

.container.right-panel-active .container--signup {
  animation: show 0.6s;
  opacity: 1;
  transform: translateX(100%);
  z-index: 5;
}

.container__overlay {
  height: 100%;
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  transition: transform 0.6s ease-in-out;
  width: 50%;
  z-index: 100;
}

.container.right-panel-active .container__overlay {
  transform: translateX(-100%);
}

.overlay {
  background-color: var(--lightblue);
  background: url("../image/mrbeast1.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  left: -100%;
  position: relative;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  width: 200%;
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay__panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  position: absolute;
  text-align: center;
  top: 0;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  width: 50%;
}

.overlay--left {
  transform: translateX(-20%);
}

.container.right-panel-active .overlay--left {
  transform: translateX(0);
}

.overlay--right {
  right: 0;
  transform: translateX(0);
}

.container.right-panel-active .overlay--right {
  transform: translateX(20%);
}

.btndiv {
  background-color: var(--blue);
  background-image: linear-gradient(90deg, var(--blue) 0%, var(--lightblue) 74%);
  border-radius: 20px;
  border: 1px solid var(--blue);
  color: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  padding: 0.9rem 4rem;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
}

.form>.btndiv {
  margin-top: 1.5rem;
}

.btndiv:active {
  transform: scale(0.95);
}

.btndiv:focus {
  outline: none;
}

.form {
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 1rem;
  height: 85%;
  text-align: center;
}

.input {

  background-color: transparent;
  border: none;
  border-bottom: 1px solid #9e9e9e;
  border-radius: 0;
  outline: none;
  height: 3rem;
  width: 100%;
  font-size: 16px;
  margin: 0 0 8px 0;
  padding: 0;
  box-sizing: content-box;
}
.input:focus{
  border:none;
  border-bottom: 2px solid #26a69a
}

#getCodeButtonIn {
  background: linear-gradient(45deg, #ff6ec7, #ff9a8b); /* 渐变背景 */
  border: none;
  color: white;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  border-radius: 30px; /* 圆角按钮 */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 阴影 */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 5rem;
  height: 40px;
  margin-left: 1rem;
  margin-top: 0.5rem;

  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: none;
  white-space: nowrap;
}
#getCodeButtonUp {
  background: linear-gradient(45deg, #ff6ec7, #ff9a8b); /* 渐变背景 */
  border: none;
  color: white;
  padding: 15px 30px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  border-radius: 30px; /* 圆角按钮 */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 阴影 */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 5rem;
  height: 40px;
  margin-left: 1rem;
  margin-top: 0.5rem;

  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: none;
  white-space: nowrap;
}

#getCodeButtonIn:hover {
  transform: scale(1.05); /* 鼠标悬停时放大效果 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* 放大时阴影效果 */
}

#getCodeButtonIn:disabled {
  background: linear-gradient(45deg, #ddd, #ddd); /* 禁用时的灰色渐变 */
  color: #999;
  cursor: not-allowed;
  transform: none; /* 禁用时移除放大效果 */
  box-shadow: none; /* 禁用时移除阴影 */
}
#getCodeButtonUp:hover {
  transform: scale(1.05); /* 鼠标悬停时放大效果 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* 放大时阴影效果 */
}

#getCodeButtonUp:disabled {
  background: linear-gradient(45deg, #ddd, #ddd); /* 禁用时的灰色渐变 */
  color: #999;
  cursor: not-allowed;
  transform: none; /* 禁用时移除放大效果 */
  box-shadow: none; /* 禁用时移除阴影 */
}


@keyframes show {

  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}


.button-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .glow-button {
  position: absolute;
  bottom:15rem;
  left: -10rem;
  width: 110px;
  height: 50px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--btn-color);
  font-size: 15px;
  font-weight: 70;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 1px var(--btn-color);
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
  border-radius: 25%;
} */
.glow-button {
  position: absolute;
  bottom: 15rem;
  left: -10rem;
  width: 110px;
  height: 50px;
  border: none;
  border-radius: 25%;
  background: transparent;
  color: var(--btn-color);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 4px var(--btn-color),
    0 0 8px var(--btn-color),
    0 0 12px var(--btn-color),
    0 0 16px var(--btn-color),
    0 0 20px var(--btn-color);
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
}


.glow-button:hover {
  background-color: var(--btn-color);
  color: #fff;
  box-shadow: 0 0 5px var(--btn-color), 0 0 25px var(--btn-color), 0 0 50px var(--btn-color), 0 0 100px var(--btn-color);
}

.glow-button:active {
  background-color: var(--btn-color);
  color: #fff;
  box-shadow: 0 0 15px var(--btn-color), 0 0 30px var(--btn-color), 0 0 60px var(--btn-color), 0 0 120px var(--btn-color);
  transform: scale(0.95);
}

.border-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.line {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, transparent, var(--btn-color));
}

.top {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  animation: topAnim 4s linear infinite;
}

@keyframes topAnim {
  0% {
      left: -100%;
  }
  50%,
  100% {
      left: 100%;
  }
}

.right {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  animation: rightAnim 4s linear infinite 1s;
  background: linear-gradient(180deg, transparent, var(--btn-color));
}

@keyframes rightAnim {
  0% {
      top: -100%;
  }
  50%,
  100% {
      top: 100%;
  }
}

.bottom {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  animation: bottomAnim 4s linear infinite 2s;
  background: linear-gradient(270deg, transparent, var(--btn-color));
}

@keyframes bottomAnim {
  0% {
      right: -100%;
  }
  50%,
  100% {
      right: 100%;
  }
}

.left {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  animation: leftAnim 4s linear infinite 3s;
  background: linear-gradient(360deg, transparent, var(--btn-color));
}

@keyframes leftAnim {
  0% {
      bottom: -100%;
  }
  50%,
  100% {
      bottom: 100%;
  }
}



