:root {
  --foreground-rgb: 255, 255, 255;
  --background-rgb: 0, 0, 0;
  --primary-green: #3ce396;
  --secondary-gray: #333333;
  --dark-gray: #222222;
  --light-gray: #444444;
  --error-red: #ff4d4d;
  --true-wallet: #ff0000;
}

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

body {
  color: rgb(var(--foreground-rgb));
  background: rgb(var(--background-rgb));
  font-family: 'Kanit', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.logo {
  max-width: 280px;
  margin-bottom: 2rem;
}

.title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: normal;
}

/* Progress Steps */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid var(--dark-gray);
}

.step-circle.active {
  background-color: #09b300;
  border-color: var(--secondary-gray);
}

.step-circle.completed {
  background-color: #2a2428;
  border-color: #09b300;
}

.step-number {
  display: block;
}

.step-check {
  display: none;
  color: #09b300;
}

.step-circle.completed .step-number {
  display: none;
}

.step-circle.completed .step-check {
  display: block;
}

.progress-line {
  height: 2px;
  width: 60px;
  background-color: var(--dark-gray);
}

.progress-line.active {
  background-color: #09b300;
}

/* Step Labels */
.step-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2rem;
}

.step-label {
  text-align: center;
  font-size: 0.875rem;
  color: #777;
  flex: 1;
}

.step-label.active {
  color: white;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-step {
  width: 100%;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.input-field {
  width: 100%;
  background-color: black;
  border: 1px solid #444;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #777;
  pointer-events: none;
}

.form-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.primary-button {
  font-family: 'Kanit', sans-serif;
  flex: 1;
  background-color: #09b300;
  color: black;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: 1.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background-color: #35cc86;
}

.secondary-button {
  font-family: 'Kanit', sans-serif;
  flex: 1;
  background-color: #444;
  color: white;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: 1.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.secondary-button:hover {
  background-color: #555;
}

.dark-button {
  font-family: 'Kanit', sans-serif;
  width: 100%;
  background-color: var(--secondary-gray);
  color: white;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.dark-button:hover {
  background-color: #444444;
}

.login-link {
  text-align: center;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.login-link a {
  color: #b2b2b7;
  text-decoration: none;
}

.login-link a:hover {
  color: white;
}

.full-width {
  display: block;
  width: 100%;
  text-decoration: none;
}

.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}

.true-wallet {
  color: var(--true-wallet);
  font-weight: bold;
}

.error-message {
  color: var(--error-red);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.hidden {
  display: none;
}

/* เพิ่มสไตล์นี้ต่อจากสไตล์เดิม */

.login-error {
  background-color: rgba(255, 77, 77, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  text-align: center;
}

.dark-button {
  width: 100%;
  background-color: #444444;
  color: white;
  font-weight: 500;
  padding: 0.9rem;
  border-radius: 1.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.dark-button:hover {
  background-color: #444444;
}

.login-error {
  background-color: rgba(255, 77, 77, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  text-align: center;
}

.forgot-password {
  text-align: center;
  font-size: 0.95rem;
  margin: -0.5rem;
}

.forgot-password a {
  color: #717171;
  text-decoration: none;
}

.forgot-password a:hover {
  color: white;
}

.input-field {
  font-family: 'Kanit', sans-serif;
  padding: 10px;
  border: 1px solid #a8a8a84a;
  border-radius: 5px;
}

/* ปุ่ม contact */
.floating-contact-buttons {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.contact-btn img {
  width: 28px;
  height: 28px;
}

.contact-btn:hover {
  transform: scale(1.1);
}

/* custom bank logo */
.custom-bank-dropdown {
  position: relative;
}

.custom-selected {
  background-color: #222;
  color: #fff;
  padding: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  cursor: pointer;
}

.custom-bank-options {
  background-color: #222;
  border: 1px solid #666;
  border-radius: 4px;
  position: absolute;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10;
}

.bank-option {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  cursor: pointer;
}

.bank-option:hover {
  background-color: #333;
}

.bank-option img {
  width: 24px;
  height: 24px;
}