@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  width: 100% !important;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  background: #121212;
}

/* Background halves */
.backRight {
  position: absolute;
  right: 0;
  width: 50%;
  height: 100%;
  background: #1DB954; /* Spotify Green */
}

.backLeft {
  position: absolute;
  left: 0;
  width: 50%;
  height: 100%;
  background: #191414; /* Spotify Dark */
}

#back {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -999;
}

.canvas-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Sliding panel */
#slideBox {
  width: 50%;
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  margin-left: 50%;
  position: absolute;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35),
              0 10px 10px rgba(0, 0, 0, 0.25);
}

.topLayer {
  width: 200%;
  height: 100%;
  position: relative;
  left: -100%;
}

/* Labels & Inputs */
label {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input {
  background-color: transparent;
  border: 0;
  outline: 0;
  font-size: 1em;
  padding: 8px 1px;
  margin-top: 0.1em;
}

/* Left Side (Dark mode) */
.left {
  width: 50%;
  height: 100%;
  overflow: scroll;
  background: #121212;
  left: 0;
  position: absolute;
}

.left label {
  color: #e5e5e5;
}

.left input {
  border-bottom: 1px solid #444;
  color: #fff;
}

.left input:focus, .left input:active {
  border-color: #1DB954;
  color: #1DB954;
}

.left input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #121212 inset;
  -webkit-text-fill-color: #fff;
}

.left a {
  color: #1DB954;
}

/* Right Side (Light green background) */
.right {
  width: 50%;
  height: 100%;
  overflow: scroll;
  background: #191414;
  right: 0;
  position: absolute;
}

.right label {
  color: #d4d4d4;
}

.right input {
  border-bottom: 1px solid #555;
  color: #fff;
}

.right input:focus, .right input:active {
  border-color: #1DB954;
  color: #1DB954;
}

.right input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #191414 inset;
  -webkit-text-fill-color: #fff;
}

/* Content container */
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  width: 80%;
  margin: 0 auto;
  position: relative;
}

.content h2 {
  font-weight: 600;
  font-size: 2.4em;
  margin: 0.2em 0 0.1em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.left .content h2 {
  color: #1DB954;
}

.right .content h2 {
  color: #fff;
}

/* Form elements */
.form-element {
  margin: 1.6em 0;
}
.form-element.form-submit {
  margin: 1.6em 0 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
}

/* Checkbox */
.checkbox {
  -webkit-appearance: none;
  outline: none;
  background-color: #2a2a2a;
  border: 1px solid #444;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

.checkbox:checked:after {
  content: "✓";
  color: #1DB954;
  font-size: 1.4em;
  font-weight: 900;
  position: absolute;
  top: -4px;
  left: 4px;
}

/* Buttons */
button {
  padding: 0.8em 1.2em;
  margin: 0 10px 0 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1em;
  color: #fff;
  line-height: 1em;
  letter-spacing: 0.6px;
  border-radius: 6px;
  border: 0;
  outline: 0;
  background: #1DB954;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

button.signup {
  background: #1DB954;
}

button.login {
  background: #1ed760; /* lighter green */
}

button.off {
  background: none;
  box-shadow: none;
}

button.off.signup,
button.off.login {
  color: #1DB954;
}

button:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

/* Forget password */
#forgetPassword {
  background: transparent;
  box-shadow: none;
  margin: 0;
  color: #a3a3a3;
  float: inline-end;
  cursor: pointer;
}

#forgetPassword:hover {
  color: #fff;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  #slideBox {
    width: 80%;
    margin-left: 20%;
  }

  .signup-info, .login-info {
    display: none;
  }
}
