/* Reset and Base Styles */
/* font-family: "Montserrat", sans-serif; */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(to top right, #faf8f4, #f0ebe0, #e8ddd0);
}

/* Authentication Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top right, #f5f1e8, #f0ebe0, #e8ddd0);
}

/* Form Section */
.form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 1.5rem;
  order: 2;
  background: transparent;
}

.form-wrapper {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #2f4136;
  margin-bottom: 2rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-group label {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  font-family: "Montserrat", sans-serif;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: #f1f1ee;
  border: 1px solid #8f9892;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #f4c36e;
  box-shadow: 0 0 0 1px #f4c36e;
}

.form-input.error {
  border-color: #ef4444;
}

.form-input.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 52%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #6b7280;
}

/* Form Row */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Checkbox Styles */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-checkbox {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.custom-checkbox:checked {
  background-color: #f5c54f;
  border-color: #f5c54f;
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.375rem;
  height: 0.75rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.custom-checkbox + label {
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

/* Links */
.forgot-link,
.link {
  color: #c9951e;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.forgot-link:hover,
.link:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.submit-btn:hover:not(:disabled) {
}

.submit-btn:disabled {
  /* cursor: not-allowed; */
}

/* Spinner */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Footer Text */
.footer-text {
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  color: #374151;
  font-family: "Montserrat", sans-serif;
}

/* Image Section */
.image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
  order: 1;
  position: relative;
}

@media screen and (max-width: 1024px) {
  .image-section {
    display: none;
  }
  .image-section img {
    display: none;
  }
}
.hero-image {
  width: 100%;
  max-width: 28rem;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Error Messages */
.error-message {
  display: none;
  font-size: 0.875rem;
  color: #ef4444;
  align-items: center;
  gap: 0.25rem;
}

.error-message.show {
  display: flex;
}

.error-message svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Responsive Design */
@media (min-width: 1024px) {
  .auth-container {
    flex-direction: row;
  }

  .form-section {
    order: 1;
    padding: 1.5rem 3rem;
  }

  .image-section {
    order: 2;
    padding-inline: 3rem;
  }

  .page-title {
    font-size: 32px;
    font-weight: 700;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.show {
  display: flex !important;
}

.custom-button {
  margin-top: 30px;
}

.custom-button:not(.now):hover svg {
  transform: translateX(160px);
}

@media (max-width: 1024px) {
  .form-section {
    justify-content: center;
  }
}
