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

body {
  font-family: "Poppins", sans-serif;
  height: 100vh;
}

.signup-container {
  display: flex;
  min-height: 100vh;
}

.signup-img-logo {
  width: 100px;
}

.left-side {
  flex: 1;
  background: linear-gradient(135deg, #0b2c3f 0%, #1a4a5c 100%);
  position: relative;
  overflow: hidden;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}

.left-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(11, 44, 63, 0.85), rgba(11, 44, 63, 0.85)),
    url("/assets/images/homepage/benefits-of-messengerbird.jpg") center/cover;
}

.left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 1rem 3rem;
  text-align: center;
  color: #c4c4c4;
}

.left-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 400px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.right-side {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 3rem 3rem;
  max-width: 500px;
  overflow-y: auto;
  margin-left: 50%;
  min-height: 100vh;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-indicator {
  text-align: right;
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 1rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-subtitle {
  color: #718096;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.iti {
  width: 100%;
  max-width: 405px;
}

.iti input {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2d3748;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #0b2c3f;
}

.form-control::placeholder {
  color: #a0aec0;
}

/* When the form is disabled, fade all option cards */
.form-disabled .main-option-card,
.form-disabled .bird-card {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Also make inputs inside unclickable and gray */
.form-disabled input[type="radio"],
.form-disabled input[type="checkbox"] {
  cursor: not-allowed;
}

/* Optional: Gray out span text as well */
.form-disabled .main-option-card span,
.form-disabled .bird-card span {
  color: #999;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #666;
}

/* Main Toggle Cards */
.bird-main-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Base styling for each radio card */
.main-option-card {
  position: relative;
  border: 2px solid #ced4da;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex: 1;
  transition: border 0.2s, background 0.2s;
}

/* Remove native radio styling */
.main-option-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

/* Checkmark styling */
.main-option-card input[type="radio"]:checked {
  background-color: var(--primary-color);
}

.main-option-card input[type="radio"]:checked::after {
  content: "✓";
  color: var(--accent-color);
  font-size: 14px;
  position: absolute;
  top: 1px;
  left: 4px;
}

/* Hover */
.main-option-card:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

/* Selected (checked) state */
.main-option-card:has(input[type="radio"]:checked) {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Optional: highlight selected card */
.main-option-card input[type="radio"]:checked ~ span {
  color: var(--accent-color);
  font-weight: 600;
}

/* Bird Type Cards */
.bird-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.bird-card {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 1rem;
  background: #f9f9f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, border 0.2s;
}

.bird-card:hover {
  background: var(--primary-color);
  color: var(--accent-color);
}

.bird-card input[type="checkbox"] {
  margin: 0;
}

/* Remove default outline highlight when focused/selected */
.bird-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;

  border-radius: 4px;
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s, border 0.2s;
}

/* Custom checkmark styling */
.bird-card input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--white);
}

.bird-card input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--accent-color);
  font-size: 12px;
  position: absolute;
  top: 0;
  left: 3px;
}

/* Optional: highlight the card itself when checked */
.bird-card input[type="checkbox"]:checked ~ span {
  color: var(--accent-color);
  font-weight: 600;
}

.bird-card.selected {
  border-color: var(--accent-color);
  background-color: var(--primary-color);
}

.hidden {
  display: none;
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dee2e6;
  margin: 0 0.75rem;
}

.already-account {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: #6c757d;
}

.already-account a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.already-account a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0b2c3f 0%, #1a4a5c 100%);
  color: var(--accent-color);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0b2c3f 0%, #1a4a5c 50%);
}
#google-signup-button {
  transition: all 0.2s ease;
}

#google-signup-button:hover {
  background-color: #2a2a2a;
}

#google-signup-button:disabled,
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #f7fafc;
  color: #2d3748;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.button-group {
  display: flex;
  gap: 1rem;
}

.button-group .btn {
  flex: 1;
}

.btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.75s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.terms-text {
  text-align: center;
  font-size: 0.9rem;
  color: #718096;
  margin-top: 1rem;
}

.terms-text a {
  color: #0b2c3f;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f0fff4;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.security-note .icon {
  color: #38a169;
  width: 20px;
  height: 20px;
}

.security-note .text {
  color: #2f855a;
  font-size: 0.9rem;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step {
  display: none;
}

.step.active {
  display: block;
}

@media (max-width: 768px) {
  .signup-container {
    flex-direction: column;
  }

  .left-side {
    display: none;
  }

  .right-side {
    max-width: none;
    padding: 2rem;
    margin-left: 0;
  }

  .left-content h1 {
    font-size: 2rem;
  }

  .id-upload-grid {
    grid-template-columns: 1fr;
  }
}
