/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Container layout */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Form side styling */
.form-container {
  flex: 1;
  background-color: #faf9f6;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  height: 2rem;
  width: 2rem;
  background-color: #1a1a1a;
  color: white;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 0.5rem;
}

.logo-text {
  font-weight: bold;
  font-size: 1.25rem;
}

.nav-link {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.875rem;
}

.nav-link:hover {
  text-decoration: underline;
}

.form-content {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
  padding: 1rem 0;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Form elements */
.form-row {
  display: flex;
  gap: 1rem;
  /* margin-bottom: 1rem; */
}

.form-field {
  margin-bottom: 1rem;
  width: 100%;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

input, select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out;
}

input:focus, select:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.phone-input {
  display: flex;
  gap: 0.5rem;
}

.phone-input select {
  width: 6rem;
}

.phone-input input {
  flex: 1;
}

.password-hint {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.error-message {
  display: block;
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  /* min-height: 1rem; */
}

.forgot-link {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: right;
  text-decoration: none;
  color: #1a1a1a;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Checkbox field styling */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.inline-link {
  color: #1a1a1a;
  text-decoration: underline;
}

.inline-link:hover {
  color: #333;
}

/* Buttons */
.primary-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  margin-top: .5rem;
}

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

.secondary-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: white;
  color: #1a1a1a;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.secondary-button img {
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #d1d5db;
}

.divider span {
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Carousel styling - Improved for Claude-style carousel */
.carousel-container {
  flex: 1;
  background-color: #f5f4ed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  height: 100%;
  width: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-slide.leaving {
  opacity: 0;
  visibility: visible;
  z-index: 0;
}

/* Conversation styling */
.conversation-container {
  max-width: 80%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background-color: #f5f4ed;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.user-message, .assistant-content {
  /* opacity: 0; */
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 80%;
  position: relative;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-bubble.user {
  background-color: #1a1a1a;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
}

.message-bubble.assistant {
  background-color: #fff;
  color: black;
  margin-right: auto;
  border-bottom-left-radius: 0.25rem;
}

.conversation-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.pre-hidden {
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

.user-message,
.message-bubble.assistant,
.conversation-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.conversation-image:hover {
  transform: scale(1.02);
}

.carousel-dots {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  z-index: 5;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.7);
  /* box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; */
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background-color: white;

  transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .form-container {
    order: 2;
    padding: 1.5rem;
  }

  .carousel-container {
    order: 1;
    height: 40vh;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .conversation-container {
    max-width: 95%;
    padding: 1rem;
  }

  .carousel-dots {
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .message-bubble {
    max-width:95%;
}
}

#togglePassword{
  position: absolute;
    top: 42px;
    right: 10px;
}
#loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: rgba(88, 86, 86, 0.1);

  }

  #loader .pageload{
  width: 36px;
  height: 36px;
  border: 5px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 0.5s linear infinite;
  }
  @keyframes rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
  }