:root {
  --primary-100: #E6EDEA;
  --primary-200: #CDDAD4;
  --primary-300: #A2B29F;
  --primary-400: #819482;
  --primary-500: #687F6B;
  --grey-100: #F8F8F8;
  --grey-700: #333333;
}

body {
  font-family: 'Railway-Light', Arial, sans-serif;
  background-color: var(--grey-100);
  color: var(--grey-700);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.auth-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.auth-container {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background-color: white;
}

.auth-form-container {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.auth-image-container {
  height: 100%;
  aspect-ratio: 1 / 2;
  overflow: hidden;
}

.auth-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-title {
  font-family: 'Kalnia-Medium', Arial, sans-serif;
  font-size: 28px;
  margin-bottom: 16px;
}

.auth-subtitle {
  font-size: 16px;
  margin-bottom: 32px;
}

.auth-form {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  margin-bottom: 24px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.input-field {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary-200);
  border-radius: 4px;
  font-size: 16px;
}

.input-field.textarea {
  min-height: 100px;
  resize: vertical;
}

.auth-button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-400);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-button:hover {
  background-color: var(--primary-500);
}

.forgot-password {
  display: block;
  text-align: right;
  margin-bottom: 16px;
  color: var(--primary-500);
  text-decoration: none;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
}

.error-message {
  color: #D9534F;
  text-align: center;
  margin-top: 16px;
}

.confirmation-message {
  text-align: center;
  margin-top: 24px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.loading-spinner {
  border: 4px solid var(--primary-200);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  margin-top: 16px;
}

.logo-container {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  max-width: 125px;
  height: auto;
}

@media (max-width: 768px) {
  .auth-wrapper {
    height: auto;
    min-height: 100vh;
  }

  .auth-container {
    flex-direction: column;
  }
  
  .auth-form-container {
    padding: 24px;
  }

  .auth-image-container {
    display: none;
  }
  
  .auth-form {
    max-width: 100%;
  }
}
