* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fdf6f0, #fff8f0);
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 40px 20px;
}

.login-container {
  width: 90%;
  max-width: 950px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  background: #fff8f0;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  text-align: center;
  background: #fff3e8;
}
.login-left .coffee-img {
  width: 200px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}
.login-left .coffee-img:hover {
  transform: scale(1.05);
}
.login-left h2 {
  color: #a65b35;
  font-size: 2em;
  margin-bottom: 12px;
}
.login-left p {
  color: #552915;
  font-size: 1em;
  line-height: 1.5;
}

.login-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background: #552915;
}
.login-box {
  width: 100%;
  max-width: 380px;
  color: #fff;
}
.login-box h2 {
  font-size: 2em;
  margin-bottom: 10px;
}
.login-box p {
  margin-bottom: 20px;
  color: #f2e6dc;
}
.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 0.95em;
}
.login-box input[type="email"],
.login-box input[type="password"] {
  background: #fff;
  color: #552915;
}

.signin-btn {
  width: 100%;
  padding: 14px;
  background: #a65b35;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
  transition: 0.3s;
}
.signin-btn:hover {
  background: #fff8f0;
  color: #552915;
  border: 1px solid #552915;
}

.forgot-link {
  color: #f2e6dc;
  text-decoration: none;
  font-weight: 500;
  display: block;
  text-align: right;
  margin-bottom: 15px;
}
.forgot-link:hover {
  text-decoration: underline;
}

.register-text {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95em;
}
.register-text a {
  color: #f2e6dc;
  font-weight: 500;
  text-decoration: underline;
}

.forgot-popup, .message-popup, .otp-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.forgot-content, .message-content, .otp-content {
  background: #fff8f0;
  padding: 30px 25px;
  border-radius: 20px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: popupFade 0.3s ease-out;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #552915;
  cursor: pointer;
}

.forgot-content h3, .message-content h3, .otp-content h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #a65b35;
}
.forgot-content p, .message-content p, .otp-content p {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #552915;
}

.forgot-content input, .otp-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #c4a484;
  font-size: 0.95em;
}
.forgot-content input:focus, .otp-content input:focus {
  border-color: #a65b35;
}

#otpError {
  display: none;
  font-size: 0.9em;
  color: red;
  text-align: left;
  margin-bottom: 15px;
}

#sendReset, #verifyOtpBtn {
  width: 100%;
  padding: 12px;
  background: #a65b35;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
#sendReset:hover, #verifyOtpBtn:hover {
  background: #552915;
}

.ok-btn {
  width: 100%;
  padding: 12px;
  background: #a65b35;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.ok-btn:hover {
  background: #552915;
}

@keyframes popupFade {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .login-wrapper { padding: 30px 15px; }
  .login-left, .login-right { padding: 30px 20px; }
}
@media (max-width: 768px) {
  .login-container { flex-direction: column; }
  .login-left, .login-right { width: 100%; padding: 25px; }
  .login-left .coffee-img { width: 150px; }
}
@media (max-width: 500px) {
  .login-left h2 { font-size: 1.5em; }
  .login-left p { font-size: 0.9em; }
  .login-box h2 { font-size: 1.5em; }
  .login-box p, .register-text { font-size: 0.85em; }
  .login-box input { padding: 10px; }
  .signin-btn { padding: 12px; }
  .forgot-content, .otp-content { padding: 25px 15px; width: 90%; }
}
