/* ===== COMPANY AUTH PAGES ===== */

/* Hero section for auth pages */
.avento-auth-hero {
  position: relative;
  padding-bottom: 40px;
}

/* Auth section wrapper */
.auth-section {
  padding-bottom: 80px;
}

.auth-panel {
  max-width: 1182px;
  width: 100%;
  display: flex;
  margin: 0 auto;
  margin-bottom: 60px;
  position: relative;
}

/* ===== LEFT PANEL ===== */
.auth-left-panel {
  width: 40%;
  background: #fbfbfb;
  border: 1px solid #e6e6e6;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.auth-left-panel h1 {
  margin-bottom: 15px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 140%;
  color: var(--av-color-text);
}

.auth-left-panel .auth-subtitle {
  margin-bottom: 30px;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
}

/* Features list */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-feature p {
  margin-bottom: 0;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 100%;
  color: var(--av-color-text);
}

.auth-feature span {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 100%;
  color: #4b5563;
}

.auth-left-panel .auth-divider {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin-top: auto;
}

.auth-footer-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.auth-footer-info .auth-help {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0;
}

.auth-footer-info .auth-help a {
  font-weight: 600;
  color: var(--av-color-primary);
  text-decoration: none;
}

.auth-footer-info .auth-help a:hover {
  color: #0d5344;
}

.auth-footer-info .auth-reserved {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* ===== RIGHT PANEL ===== */
.auth-right-panel {
  width: 60%;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0px 10px 50px 0px rgba(0, 0, 0, 0.08);
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  padding: 40px;
}

.auth-right-panel h1 {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 140%;
  color: var(--av-color-text);
  margin-bottom: 4px;
}

.auth-right-panel .auth-subtitle {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 2.25;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ===== FORM STYLES ===== */
.auth-right-panel form {
  margin-top: 16px;
}

.auth-label {
  display: block;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 2.5;
  color: var(--av-color-text);
}

.auth-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

/* Input with icon wrapper */
.auth-input-wrapper {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.auth-password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
  z-index: 1;
}

.auth-password-toggle:hover {
  color: #4b5563;
}

/* Base input styles */
.auth-right-panel .auth-input {
  background: #f6f6f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px 14px 48px;
  width: 100%;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--av-color-text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-right-panel .auth-input:focus {
  outline: none;
  border-color: var(--av-color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 113, 91, 0.1);
}

.auth-right-panel .auth-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.auth-right-panel .auth-input.field-error-border {
  border-color: #ef4444 !important;
}

.auth-right-panel .auth-input.field-error-border:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Input without icon (no left padding) */
.auth-right-panel .auth-input.no-icon {
  padding-left: 16px;
}

/* Checkbox */
.auth-right-panel input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  background: #f6f6f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-right-panel input[type="checkbox"]:checked {
  background: var(--av-color-primary);
  border-color: var(--av-color-primary);
}

.auth-right-panel input[type="checkbox"]:checked::after {
  content: "\2713";
  color: white;
  font-size: 12px;
  position: absolute;
}

/* Options row (remember + forgot) */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 28px;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: #4b5563;
}

.auth-options .auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-options a {
  text-decoration: none;
  color: var(--av-color-primary);
  font-weight: 500;
}

.auth-options a:hover {
  color: #0d5344;
}

/* Submit button */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--av-color-primary) 0%, #0d5344 100%);
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 113, 91, 0.25);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Resend verification button — dark initially, green on hover */
.auth-btn-resend {
  background: var(--av-color-text) !important;
  color: #ffffff;
}

.auth-btn-resend:hover {
  background: var(--av-color-primary) !important;
  box-shadow: 0 8px 20px rgba(18, 113, 91, 0.25);
}

/* Footer link */
.auth-form-footer {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--av-color-text);
  text-align: center;
  margin-bottom: 0;
  margin-top: 100px;
}

.auth-form-footer a {
  font-weight: 600;
  color: var(--av-color-primary);
  text-decoration: none;
}

.auth-form-footer a:hover {
  color: #0d5344;
}

/* ===== PROGRESS BAR (Signup) ===== */
.auth-progress-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-progress-info {
  display: flex;
  justify-content: space-between;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: #6b7280;
}

.auth-progress-bar {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border: 0.5px solid #e6e6e6;
  border-radius: 100px;
}

.auth-progress-fill {
  width: 50%;
  height: 100%;
  background: var(--av-color-primary);
  border-radius: 8px;
  transition: width 0.4s ease;
}

.auth-progress-fill.full {
  width: 100%;
}

/* ===== BUTTON GROUP (Back + Submit) ===== */
.auth-btn-group {
  display: flex;
  gap: 10px;
}

.auth-btn-group .auth-back-btn {
  padding: 16px 32px;
  background: #fbfbfb;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--av-color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.auth-btn-group .auth-back-btn:hover {
  background: #e6e6e6;
}

/* ===== TERMS ===== */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 28px;
}

.auth-terms-text {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.5;
}

.auth-terms-text a {
  font-weight: 600;
  color: var(--av-color-primary);
  text-decoration: none;
}

.auth-terms-text a:hover {
  color: #0d5344;
}

/* ===== ALERT MESSAGES ===== */
.auth-alert {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: Roboto, sans-serif;
  font-size: 0.8125rem;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.auth-alert-error p {
  margin: 0 0 6px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #991b1b;
}

.auth-alert-error ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: #b91c1c;
  list-style: disc;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.auth-alert-success p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #065f46;
}

/* ===== PASSWORD STRENGTH ===== */
.auth-password-strength {
  margin-top: 4px;
  margin-bottom: 8px;
  display: none;
}

.auth-password-strength.show {
  display: block;
}

.auth-strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.auth-strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.auth-strength-fill.weak { width: 33%; background: #ef4444; }
.auth-strength-fill.medium { width: 66%; background: #f59e0b; }
.auth-strength-fill.strong { width: 100%; background: #10b981; }

.auth-strength-text {
  font-family: Roboto, sans-serif;
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 4px;
  display: block;
}

/* ===== EMAIL VERIFICATION (Step 2) ===== */
.auth-verify-container {
  text-align: center;
  padding: 20px 0;
}

.auth-verify-icon {
  width: 80px;
  height: 80px;
  background: rgba(18, 113, 91, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--av-color-primary);
}

.auth-verify-title {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--av-color-text);
  margin-bottom: 8px;
}

.auth-verify-desc {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth-verify-email-highlight {
  font-weight: 600;
  color: var(--av-color-text);
}

/* OTP Input Group */
.auth-otp-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-otp-input {
  width: 56px;
  height: 60px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #f6f6f6;
  text-align: center;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--av-color-text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-otp-input:focus {
  outline: none;
  border-color: var(--av-color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 113, 91, 0.1);
}

.auth-otp-input.field-error-border {
  border-color: #ef4444 !important;
}

.auth-resend-row {
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 20px;
  margin-bottom: 0;
}

.auth-resend-link {
  color: var(--av-color-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-family: Roboto, sans-serif;
  padding: 0;
}

.auth-resend-link:hover {
  color: #0d5344;
}

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

.auth-timer {
  font-family: Roboto, sans-serif;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 8px;
}

/* ===== FIELD ERROR ===== */
.auth-field-error {
  font-family: Roboto, sans-serif;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .auth-panel {
    flex-direction: column;
  }
  .auth-left-panel {
    width: 100%;
    border-bottom-left-radius: 0;
    border-top-right-radius: 25px;
  }
  .auth-right-panel {
    width: 100%;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 0;
  }
  .auth-left-panel .auth-divider {
    margin-top: 40px;
  }
  .auth-form-footer {
    margin-top: 50px;
  }
}

@media (max-width: 575.98px) {
  .auth-btn-group {
    flex-direction: column;
  }
  .auth-left-panel {
    padding: 28px 20px;
  }
  .auth-right-panel {
    padding: 28px 20px;
  }
  .auth-left-panel h1,
  .auth-right-panel h1 {
    font-size: 1.5rem;
  }
  .auth-otp-group {
    gap: 8px;
  }
  .auth-otp-input {
    width: 46px;
    height: 52px;
    font-size: 1.25rem;
  }
}
