* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Content */
.main-content {
  padding: 0;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 150px;
}

.login-container {
  margin-bottom: 40px;
}

.login-box {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 450px;
  max-width: 90vw;
  position: relative;
  overflow: hidden;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

.login-title {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
}

.login-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: rgb(61, 181, 127);
  margin: 15px auto 30px;
}

.login-form {
  width: 100%;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background: #f8f9fa;
}

.form-input:focus {
  outline: none;
  border-color: #3a8943;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #999;
  user-select: none;
}

.password-toggle:hover {
  color: #00ff55;
}

.login-btn,
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #00ff88 0%, #1d5824 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.login-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 123, 0, 0.3);
}

.login-btn:active,
.submit-btn:active {
  transform: translateY(0);
}

.login-btn:disabled,
.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.forgot-password,
.register-link,
.back-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.forgot-password:hover,
.register-link:hover,
.back-link:hover {
  color: #378b6d;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 14px;
}

.otp-container {
  text-align: center;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s;
}

.otp-input:focus {
  outline: none;
  border-color: #00ffa6;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.1);
}

.otp-input.filled {
  border-color: #27833c;
  background: rgba(40, 167, 69, 0.1);
}

.otp-input.error {
  border-color: #d81a1a;
  background: rgba(220, 53, 69, 0.1);
  animation: shake 0.5s;
}

.email-info {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #00ff6e;
}

.email-info i {
  color: #00ffa2;
  margin-right: 8px;
}

.resend-otp {
  text-align: center;
  margin-top: 15px;
}

.resend-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.resend-link:hover {
  color: #00ff66;
}

.resend-link.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.countdown {
  color: #999;
  font-size: 14px;
}

.message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Animations */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.form-input.error {
  border-color: #dc3545 !important;
  background-color: #ffeaea !important;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff40;
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    min-height: 50vh;
  }
  .login-box {
    padding: 30px 20px;
    margin: 0 20px;
  }
}

@media (max-width: 480px) {
  .main-content{
    padding-top: 100px;
  }
  .login-container{
    margin-bottom: 20px;
  }
  .login-box {
    width: 100%;
    margin: 0 10px;
  }

  .otp-inputs {
    gap: 5px;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
