* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  background-image: url('/public/images/brand.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.proceed-btn {
  padding: 18px 60px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 200px;
  flex-shrink: 0;
  position: relative;
}

.proceed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.proceed-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 4rem;
    padding-top: 1rem;
  }

  .proceed-btn {
    padding: 16px 50px;
    font-size: 16px;
    min-width: 180px;
    position: relative;
    z-index: 100;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 5rem;
  }
}

@media (max-height: 700px) and (min-width: 769px) {
  body {
    padding-bottom: 2.5rem;
  }
}

@media (max-height: 600px) and (min-width: 769px) {
  body {
    padding-bottom: 2rem;
  }
}

@media (max-height: 500px) and (min-width: 769px) {
  body {
    padding-bottom: 1.5rem;
  }
}

.registration-page,
.scan-page {
  background-image: url('/public/images/bg.jpg');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.registration-container {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 24px;
  padding: 2rem 2rem;
  max-width: 420px;
  width: 90%;
  max-height: 55vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  overflow-x: hidden;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#sendOtpBtn.hidden {
  display: none;
}

.mobile-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  background: #f8f8f8;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-input::placeholder {
  color: #999;
}

.mobile-input:focus {
  border-color: #ff6b35;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.mobile-input:read-only {
  background: #e8e8e8;
  color: #666;
  cursor: not-allowed;
  border-color: #ccc;
}

.action-btn {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-btn:disabled {
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.otp-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: -0.5rem;
}

.otp-section.hidden {
  display: none;
}

.otp-container {
  background: transparent;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.otp-input {
  width: 60px;
  height: 60px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #ffffff;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.otp-input:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.resend-container {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.resend-btn {
  background: none;
  border: none;
  color: #ff6b35;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: underline;
  transition: all 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.resend-btn:hover:not(:disabled) {
  color: #f7931e;
}

.resend-btn:disabled {
  color: #999;
  cursor: not-allowed;
  text-decoration: none;
}

@media (max-width: 480px) {
  .registration-page,
  .scan-page {
    padding: 0;
  }

  .registration-container {
    padding: 1.5rem 1.5rem;
    width: 90%;
    max-height: 55vh;
  }

  .mobile-input,
  .action-btn {
    padding: 16px 20px;
    font-size: 16px;
  }

  .otp-input {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .otp-inputs {
    gap: 8px;
  }

  .otp-container {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 360px) {
  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .otp-inputs {
    gap: 6px;
  }
}
