﻿.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Left Section - Image/Illustration */
.auth-left {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #f5f5f5;
}

.illustration-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  object-position: left bottom;
}

/* Right Section - Form */
.auth-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-header {
  text-align: left;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 0.75rem 0;
}

.auth-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.6rem 0;
  line-height: 1.5;
}

.auth-subtitle:last-of-type {
  margin-bottom: 0;
}

.auth-subtitle a {
  color: #ff4500;
  text-decoration: underline;
  word-break: break-all;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #999;
  z-index: 2;
  font-size: 1.25rem;
  pointer-events: none;
}

/* Form input styling */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.form-input,
.form-input.rz-textbox,
.form-input.rz-password {
  width: 100% !important;
  padding: 1rem 1rem 1rem 3rem !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  height: 52px !important;
  outline: none !important;
}

  .form-input:focus,
  .form-input.rz-textbox:focus,
  .form-input.rz-password:focus {
    border-color: #ff6347 !important;
    box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.1) !important;
  }

  .form-input::placeholder,
  .form-input.rz-textbox::placeholder,
  .form-input.rz-password::placeholder {
    color: #999 !important;
  }

.validation-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
}

/* Submit button styling */
.auth-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #ff6347;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  height: 52px;
}

  .auth-button:hover:not(:disabled) {
    background: #e5533d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
  }

  .auth-button:disabled {
    background: #ffb3a7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

.auth-toggle {
  text-align: center;
  margin-top: 0.5rem;
}

  .auth-toggle p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
  }

.toggle-link {
  background: none;
  border: none;
  color: #ff6347;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  font-weight: 500;
}

  .toggle-link:hover {
    color: #e5533d;
  }

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

  .back-link:hover {
    color: #ff6347;
    text-decoration: none;
  }

/* Radzen component overrides for this page */
.auth-form .rz-textbox,
.auth-form .rz-password {
  width: 100% !important;
  padding: 1rem 1rem 1rem 3rem !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  height: 52px !important;
}

  .auth-form .rz-textbox:focus,
  .auth-form .rz-password:focus {
    border-color: #ff6347 !important;
    box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.1) !important;
    outline: none !important;
  }

  .auth-form .rz-textbox::placeholder,
  .auth-form .rz-password::placeholder {
    color: #999 !important;
  }

  /* Password visibility toggle */
  .auth-form .rz-password .rz-button {
    position: absolute !important;
    right: 1rem !important;
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    padding: 0 !important;
    min-width: auto !important;
  }

    .auth-form .rz-password .rz-button:hover {
      color: #ff6347 !important;
      background: transparent !important;
    }

/* Icon styling */
.auth-form .rz-icon {
  font-size: 1.25rem !important;
}

/* Full page layout reset */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  width: 100% !important;
}

/* Password input container */
.password-input-container {
    position: relative;
}

    .password-input-container .form-input {
        padding-right: 3.5rem !important;
    }

/* Password toggle button */
.password-toggle-btn,
.password-toggle-btn.rz-button {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    padding: 0.25rem !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    z-index: 3 !important;
}

    .password-toggle-btn:hover,
    .password-toggle-btn.rz-button:hover {
        color: #ff6347 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .password-toggle-btn:focus,
    .password-toggle-btn.rz-button:focus {
        box-shadow: none !important;
        outline: none !important;
    }

    .password-toggle-btn .rz-button-icon-left,
    .password-toggle-btn.rz-button .rz-button-icon-left {
        margin: 0 !important;
    }


/* ===== MESSAGES ===== */
.error-message,
.success-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.success-message {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #ff6347;
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: #6b7280;
  transition: color 0.3s ease;
}

.step.active .step-label {
  color: #ff6347;
  font-weight: 500;
}

.step-line {
  width: 40px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 0.5rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.step-line.active {
  background: #ff6347;
}

/* ===== OTP INPUT ===== */
.otp-input-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
  background: #fff;
}

.otp-input:focus {
  border-color: #ff6347;
  box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.1);
}

.otp-input:disabled {
  background: #f9fafb;
  cursor: not-allowed;
}

.form-label {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.otp-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.otp-timer {
  color: #6b7280;
}

.otp-expired {
  color: #dc2626;
  font-weight: 500;
}

.resend-link {
  background: none;
  border: none;
  color: #ff6347;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  text-decoration: underline;
}

.resend-link:hover:not(:disabled) {
  color: #e5533d;
}

.resend-link:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

/* ===== PASSWORD STRENGTH INDICATOR ===== */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 0.25rem;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.strength-bar.weak {
  background: #ef4444;
}

.strength-bar.fair {
  background: #f59e0b;
}

.strength-bar.good {
  background: #10b981;
}

.strength-bar.strong {
  background: #059669;
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
}

.strength-text.weak {
  color: #ef4444;
}

.strength-text.fair {
  color: #f59e0b;
}

.strength-text.good {
  color: #10b981;
}

.strength-text.strong {
  color: #059669;
}

/* ===== SECONDARY BUTTON ===== */
.auth-button-secondary {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 52px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-button-secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
}

.auth-button-secondary:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.text-center {
  text-align: center;
}

/* ===== FORGOT PASSWORD LINK ===== */
.forgot-password-link {
  text-align: right;
  margin-top: -0.5rem;
}

.forgot-password-link a {
  font-size: 0.875rem;
  color: #ff6347;
  text-decoration: none;
}

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

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1100px) {
  .auth-container {
    flex-direction: column;
    overflow-y: auto;
    min-height: 100vh;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    min-height: auto;
    flex: 1;
    padding: 2rem 1.5rem;
  }

  .auth-form-container {
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  }
}

@media (max-width: 480px) {
  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 1.5rem 1rem;
  }

  .auth-form-container {
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 1.25rem;
  }

  .step-line {
    width: 24px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .otp-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Terms & Conditions checkbox */
.terms-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  color: #444;
}

.terms-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #ff4500;
  flex-shrink: 0;
  cursor: pointer;
}

.terms-checkbox-row label {
  cursor: pointer;
  line-height: 1.4;
}

.terms-link {
  color: #ff4500;
  text-decoration: none;
  font-weight: 600;
}

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