* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f2027;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: white;
}

.container {
  width: 320px;
  text-align: center;
}

.lang {
  color: #aaa;
  margin-bottom: 25px;
}

.logo img {
  width: 70px;
  margin-bottom: 25px;
}

/* INPUT */
.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 16px 12px;
  border-radius: 10px;
  border: 1px solid #2e3f47;
  background: transparent;
  color: white;
  outline: none;
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 16px;
  color: #aaa;
  font-size: 14px;
  transition: 0.2s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 11px;
}

/* BUTTON */
#loginBtn {
  width: 100%;
  padding: 14px;
  border-radius: 25px;
  border: none;
  background: #1877f2;
  opacity: 0.5;
  color: white;
  font-weight: bold;
}

#loginBtn.active {
  opacity: 1;
  cursor: pointer;
}

/* SHAKE */
.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.forgot {
  margin-top: 15px;
  color: #ccc;
}

.bottom {
  margin-top: 50px;
}

.signup {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: 1px solid #1877f2;
  background: transparent;
  color: #1877f2;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

.modal-box {
  width: 270px;
  background: #f2f2f2;
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
}

.modal-box h3 {
  margin: 18px 15px 5px;
  font-size: 16px;
  color: black;
}

.modal-box p {
  margin: 0 20px 18px;
  font-size: 13px;
  color: #333;
}

.modal-line {
  height: 1px;
  background: #ccc;
}

.modal-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background: none;
  color: #007aff;
  font-size: 16px;
}
/* PAGE SWITCH */
.page {
  position: absolute;
  top: 0;
  width: 320px;
  text-align: center;
}

.page input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #2e3f47;
  background: transparent;
  color: white;
}

.page button {
  width: 100%;
  padding: 14px;
  border-radius: 25px;
  border: none;
  background: #1877f2;
  color: white;
  margin-top: 10px;
}

.backLogin {
  margin-top: 15px;
  color: #1877f2;
  cursor: pointer;
}