/* === Reset & Base === */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #5d6bfd, #fff9e9);
  transition: background 0.5s ease;
}

/* === Glassmorphic Container === */
.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  width: 90%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* === Left Side (Form) === */
.left {
  flex: 1 1 350px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  background: linear-gradient(135deg, #e94057, #8a2387);
  border-radius: 10px;
  transition: background 0.5s ease;
}

.left h3 {
  text-align: center;
  font-size: xx-large;
  margin-bottom: 20px;
  color: #fff9c4;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: 0.3s;
}
input:focus {
  outline: none;
  border-color: #ffd740;
  box-shadow: 0 0 8px rgba(255,215,64,0.6);
}

button {
  width: fit-content;
  align-self: center;
  padding: 10px 20px;
  margin-top: 8px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #ffdd00, #ff8c00);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}
button:hover {
  background: linear-gradient(135deg, #ffe259, #ffa751);
  transform: scale(1.05);
}

/* Resend OTP Button */
#resend-otp {
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: #fff;
}
#resend-otp:hover {
  background: linear-gradient(135deg, #f83600, #f9d423);
}

/* Response Box */
#response-box {
  display: none;
  margin-top: 12px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  background-color: transparent;
  color: #11ff24;
  text-align: center;
  font-weight: 500;
}

/* === Right Side (Welcome Text + Image) === */
.right {
  flex: 1 1 350px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  position: relative;
}

.right h2 {
  color: #004aad;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(79,172,254,0.3);
}

.right img {
  max-width: 220px;
  margin-top: 20px;
  animation: imageGlow 2s infinite alternate;
}
@keyframes imageGlow {
  from { filter: drop-shadow(0 0 5px #00c6ff); }
  to { filter: drop-shadow(0 0 20px #0072ff); }
}

/* Floating bill glow */
.bill {
  background: rgba(0, 8, 255, 0.85);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
}

/* Loader */
#loader {
  display: none;
  margin: 10px auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff8c00;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Social icons */
.social-icons a {
  padding-left: 26px;
  color: #004aad;
  font-size: 22px;
  transition: transform 0.3s, color 0.3s;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: #ff6a00;
}

.fa-mobile-screen-button, .fa-key {
  color: #fff9c4;
}

/* === Night Mode === */
body.night {
  background: linear-gradient(135deg, #1e1e2f, #232526);
}
body.night .left {
  background: linear-gradient(135deg, #141e30, #243b55);
}
body.night .left h3 {
  color: #ffd740;
}
body.night .right h2 {
  color: #ffd740;
}
body.night .container {
  background: rgba(30, 30, 30, 0.6);
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}
body.night input {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid #555;
}
body.night button {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}
body.night #response-box {
  color: #00ff9d;
}

/* Toggle mode button */
.mode-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
  transition: 0.3s;
}
.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(20deg);
}
body.night .mode-toggle {
  color: #ffd740;
  background: rgba(0,0,0,0.5);
}



