@font-face {
  font-family: lz;
  src: url("../fonts/Lalezar-Regular.ttf");
}

@font-face {
  font-family: rd;
  src: url("../fonts/red\ alert\ extended.ttf");
}

:root {
  --brand-dark: #c72e00;
  --brand-light: #eaf7fd;
  --hot1: #8d450c;
  --hot2: #a7642e;
  --hot3: #d76200;
  --hot4: #e28a41;
  --cool1: #093b3b;
  --cool2: #1b5959;
  --cool3: #258484;
}

* {
  box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../pics/more/rockets2.jpg");
  background-size: cover;
  height: 100vh;
}

.container {
  background: #f7f7f7;
  padding: 36px 28px;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 380px;
  text-align: center;
  border: 12px solid var(--hot4);
  font-family: lz, rd;
}

.login .icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--hot1);
}

.login h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--cool1);
}

/* login-methods toggle */
.login-methods {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.login-methods button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: #333;
  cursor: pointer;
  font-weight: 700;
}
.login-methods button.active {
  background: var(--hot3);
  color: #fff;
  box-shadow: 0 6px 14px rgba(215, 110, 18, 0.18);
}

.login label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: #444;
  text-align: right;
}

.login input[mode="login"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border 0.3s, box-shadow 0.3s;
}

.login input[mode="login"]:focus {
  border-color: var(--hot1);
  box-shadow: 0 0 0 3px rgba(63, 178, 232, 0.1);
  outline: none;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 8px;
  margin-bottom: 18px;
}

.otp-inputs input {
  width: 48px;
  height: 48px;
  font-size: 20px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: all 0.3s;
}

.otp-inputs input:focus {
  border-color: var(--hot1);
  outline: none;
  box-shadow: 0 0 0 10px rgba(63, 178, 232, 0.65);
}

.login button {
  width: 100%;
  padding: 14px;
  background: var(--cool3);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-family: lz;
}

.login button:hover {
  background: var(--cool2);
  transform: translateY(-2px);
}

.note {
  font-size: 13px;
  color: #777;
  margin-top: -8px;
  margin-bottom: 20px;
}

.otp-section,
.login-section {
  display: none;
}

.change-number {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--hot2);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s;
}

.change-number:hover {
  color: var(--brand-dark);
}

.timer {
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.resend-btn {
  margin-top: 8px;
  background: transparent;
  color: var(--hot1);
  border: none;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.login .active {
  display: block;
}
