/* =============================================
   CBM DENTAL — SIGN IN / SIGN UP PAGE STYLES
   ============================================= */

.connexion-section {
  padding: 60px 0 100px;
  background-color: var(--gray-100);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}

.auth-container {
  width: 100%;
}

.auth-card {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(59, 7, 100, 0.03);
  box-sizing: border-box;
}

/* Icon Header */
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-badge {
  width: 56px;
  height: 56px;
  background-color: var(--violet-700);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 6px;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin: 0;
}

/* Tab Toggle */
.auth-tabs-toggle {
  display: flex;
  background: #F3F1F7;
  padding: 5px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  margin: 24px auto 28px;
  box-sizing: border-box;
}

.auth-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-500);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-tab-btn.active {
  background: var(--white);
  color: var(--violet-700);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* Social Buttons */
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-social-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.auth-social-btn svg {
  flex-shrink: 0;
}

/* Separator */
.auth-separator {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--gray-200);
  z-index: 0;
}

.auth-separator span {
  position: relative;
  z-index: 1;
  background-color: var(--white);
  padding: 0 16px;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Form Styles */
.auth-form {
  display: none;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field-group label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.auth-field-group input {
  width: 100%;
  padding: 13px 16px;
  background-color: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-field-group input:focus {
  background-color: var(--white);
  border-color: var(--violet-400);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.08);
  outline: none;
}

.auth-field-group input::placeholder {
  color: #a39eb0;
}

/* Password eye positioning */
.auth-password-wrapper {
  position: relative;
  width: 100%;
}

.auth-password-wrapper input {
  padding-right: 48px;
}

.auth-eye-btn {
  position: absolute;
  right: 14px;
  top: 24px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.auth-eye-btn:hover {
  color: var(--violet-700);
  background-color: rgba(147, 51, 234, 0.05);
}

.auth-forgot-link {
  align-self: flex-end;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-700);
  text-decoration: none;
  margin-top: -6px;
}

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

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--violet-700);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.2);
  margin-top: 6px;
  box-sizing: border-box;
}

.auth-submit-btn:hover {
  background-color: #7E22CE;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.3);
}

@media (max-width: 720px) {
  .connexion-section {
    padding: 30px 0 60px;
  }

  .auth-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 18px;
  }

  .auth-header h1 {
    font-size: 1.35rem;
  }

  .auth-tabs-toggle {
    max-width: 100%;
    margin: 18px auto 22px;
  }

  .auth-tab-btn {
    padding: 9px 8px;
    font-size: 0.84rem;
  }

  .auth-banner-notice {
    font-size: 0.84rem !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .auth-banner-notice svg {
    width: 18px !important;
    height: 18px !important;
  }

  .auth-social-btn {
    font-size: 0.88rem;
    padding: 12px 10px;
  }

  .auth-field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Invalid Input & Error Text Styling */
.auth-field-group input.is-invalid,
.auth-password-wrapper input.is-invalid {
  border: 1.5px solid #ef4444 !important;
  background-color: #fef2f2 !important;
}

.auth-field-group input.is-invalid:focus,
.auth-password-wrapper input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
  border-color: #ef4444 !important;
}

.auth-field-error {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ef4444;
  margin-top: 4px;
  text-align: right;
  display: block;
  animation: fadeInError 0.2s ease-in-out;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

