:host {
  display: block;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', serif;
}

.login-card-page-two {
  border-radius: 8px;
  background-color: var(--card-background-color);
}

.auth-section {
  border: 1px solid #d3d3d3;
  margin-top: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 8px;
}

.auth-section p {
  font-size: 0.75rem;
  color: var(--text-secondary-color);
}

/* Phone Input Container with Country Code */
#phone-form .input-container {
  width: 100%;
  display: flex;
  position: relative;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

/* Country Code Selector */
.country-code-selector {
  position: relative;
  /* min-width: 75px; */
  z-index: 5;
}

.country-code-dropdown {
  height: 100%;
  padding: 12px;
  font-size: 14px;
  color: #001e57;
  font-weight: 500;
  border: none;
  border-right: 1px solid #d3d3d3;
  background-color: #f5f5f5;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23001e57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 5px center;
  padding-right: 0.875rem;
}

.country-code-dropdown:focus {
  outline: none;
}

/* Phone Input */
#phone-form .input-container input {
  flex-grow: 1;
  background-color: white;
  padding: 12px;
  font-size: 14px;
  border: none;
  border-radius: 0 var(--space-8) var(--space-8) 0;
}

#arrow-button {
  position: absolute;
  padding: 0;
  top: 50%;
  height: 20px;
  width: 20px;
  transform: translateY(-50%);
  right: 8px;
  background-color: transparent;
  color: #001e57;
  border: none;
  cursor: pointer;
}

#arrow-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#phone-form form {
  border: 1px solid #d3d3d3;
  margin-top: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 8px;
}

/* Phone display in OTP screen */
.phone-display {
  font-size: 0.85rem;
  color: #001e57;
  font-weight: 500;
  margin-bottom: 8px;
}

.auth-section .small-text {
  font-size: 0.75rem;
}

.lucide-arrow-right {
  width: 20px;
  height: 20px;
}

p {
  margin: 0;
}

.security-box {
  color: #001e57;
  background-color: #eff6ff;
  font-size: 0.75rem;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
}

.security-box svg {
  width: 16px;
  aspect-ratio: auto;
}

.mail-input {
  padding: 10px;
}

.message-sub-text {
  font-size: 0.75rem;
  color: #001e57;
}

.spinner {
  display: inline-block;
  width: 16px;
  aspect-ratio: 1/1;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db; /* Blue color for the spinner */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.switch-mode-text {
  font-size: 0.875rem;
  color: #001e57;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
  width: max-content;
  margin: 0 auto;
  padding-top: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#OTP-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 8px;
}

#OTP-form p {
  font-size: 0.85rem;
  color: var(--text-secondary-color);
}

#OTP-form .input-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#OTP-form .input-container input {
  background-color: white;
  padding: 16px;
  width: 48px;
  aspect-ratio: 1/1;
  border: none;
  border-radius: 8px;
  text-align: center;
}

#OTP-form .small-text {
  font-size: 1rem;
}

#OTP-form button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#OTP-form #submit-button {
  background-color: #001e57;
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

#OTP-form #submit-button:disabled {
  opacity: 50%;
}

#OTP-form #resend-button {
  width: max-content;
  margin: 0 auto;
  color: #001e57;
  font-size: 0.75rem;
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  border-radius: 6px;
  padding: 8px;
  margin: 8px 0;
}

.error-message {
  color: #dc2626;
  font-size: 12px;
}

.error-close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.error-close-btn:hover {
  opacity: 0.8;
}

.phone-input-wrapper {
  position: relative;
  width: 100%;
}

.tick-mark {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary-color);
  pointer-events: none;
  z-index: 6;
  height: 20px;
  width: 20px;
}
