:root {
  --font-sans:
    "Saans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --primary-color: #00847d;
  --primary-hover: #00635d;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --background-light: #ffffff;
  --form-background: #f4f9f9;
  --border-color: rgba(0, 0, 0, 0.1);
  --focus-ring: rgba(0, 132, 125, 0.5);
  --error-color: #ef4444;
  --error-background: #fee2e2;
  --success-background: #dcfce7;
  --success-color: #16a34a;
}

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

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background-light);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

.login-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Left side styling */
.login-image-container {
  position: relative;
  width: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 73, 182, 0.54);
  mix-blend-mode: darken;
  z-index: 2;
}

.logo-container {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  z-index: 10;
}

.logo {
  height: 1.6rem;
}

/* Right side styling */
.login-form-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: var(--form-background);
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
}

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

.app-icon {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.2rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: all 0.2s;
  background-color: white;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.otp-input {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  text-align: center;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  background-color: white;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
  -webkit-text-security: disc;
}

.error-message {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: var(--error-background);
  border: 1px solid var(--error-color);
  border-radius: 0.375rem;
  color: var(--error-color);
  font-size: 0.875rem;
}

.success-message {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: var(--success-background);
  border: 1px solid var(--success-color);
  border-radius: 0.375rem;
  color: var(--success-color);
  font-size: 0.875rem;
}

.primary-button {
  width: 100%;
  height: 3rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

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

.primary-button.htmx-request {
  opacity: 0.7;
  cursor: not-allowed;
}

.forgot-password-container {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

.forgot-password-link {
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.terms-container {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.terms-container a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Media query for responsive design */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-image-container {
    width: 100%;
    height: 30vh;
  }

  .login-form-container {
    width: 100%;
    height: 70vh;
  }
}
