/* === Password eye icon === */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 38px;
  width: 100%;
  box-sizing: border-box;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}
.toggle-password svg {
  color: #111;
  stroke: #111;
  fill: none;
  width: 22px;
  height: 22px;
  pointer-events: none;
  display: block;
}
.toggle-password.visible svg {
  opacity: 0.7;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

/* ========================================
   BASE STYLES
======================================== */
body.auth-shell {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: image-set(url('/img/background_login_register.webp') type('image/webp'), url('/img/background_login_register.png') type('image/png')),
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center center, 20% 0%, 80% 100%, center center;
  background-size: cover, auto, auto, cover;
  color: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Logo dans le panneau de connexion */
.login-logo {
  height: 3rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.4);
  transform-origin: center;
}


.auth-wrap {
  width: 100%;
  max-width: 920px;
  text-align: center;
  position: relative;
}

.auth-toast-stack {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(92vw, 520px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-toast {
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
}


.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.auth-footer a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: #e8e0ff;
}

/* ========================================
   MAIN CONTAINER
======================================== */
.container {
  background: rgba(15, 15, 35, 0.95);
  border-radius: 24px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 1060px;
  max-width: 100%;
  min-height: 640px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* ========================================
   FORM CONTAINERS
======================================== */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 2.25rem;
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem 2rem;
}

.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
  opacity: 0;
}

.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  0%, 40% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ========================================
   OVERLAY (SLIDING PANEL)
======================================== */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border-radius: 0 24px 24px 0;
}

.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
  border-radius: 24px 0 0 24px;
}

.overlay {
  background: #f1f5f9;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2.5rem;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-left {
  transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.container.right-panel-active .overlay-right {
  transform: translateX(20%);
}

.overlay-panel h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #111;
}

.overlay-panel p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #222;
  margin: 0 0 2rem;
  max-width: 280px;
}

/* ========================================
   FORMS
======================================== */
.form-panel {
  width: 100%;
}

.form-panel h1,
.register-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0.5rem;
  font-size: 0.9rem;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.forgot-password-form .login-logo {
  margin-top: 0.6rem;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  margin-top: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.05rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ========================================
   INPUTS
======================================== */
input,
select {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  width: 100%;
  color: #0f172a;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

input::placeholder {
  color: #64748b;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

input.error,
select.error {
  border-color: #ef4444 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select option {
  background: #ffffff;
  color: #0f172a;
}

/* ========================================
   BUTTONS
======================================== */
button {
  font-family: inherit;
  cursor: pointer;
}

.auth-btn {
  width: 100%;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Boutons noirs sur overlay blanc cassé */
.overlay .auth-btn {
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button.ghost {
  background: #111;
  border: 2px solid #111;
  border-radius: 50px;
  color: #fff;
  padding: 0.8rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

button.ghost:hover {
  background: #222;
  border-color: #222;
}

/* ========================================
   LINKS
======================================== */
.forgot-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-decoration: none;
  align-self: flex-end;
  margin-top: -0.5rem;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #a78bfa;
}

.auth-alert {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.auth-alert--error {
  color: #8a1f2d;
  background: rgba(255, 232, 236, 0.96);
  border: 1px solid rgba(213, 72, 95, 0.24);
}

.auth-toast--error {
  color: #fff4f6;
  background: rgba(127, 29, 29, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.auth-social {
  width: 100%;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 10px;
  color: #6b7280;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  border-color: rgba(15, 23, 42, 0.18);
}

.auth-social-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.field-error-message--block {
  display: block;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 2px;
}

.mobile-switch {
  display: none;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-switch a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}

/* ========================================
   CHECKBOX
======================================== */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-top: 5px;
  width: 100%;
  text-align: left;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #a78bfa;
  cursor: pointer;
}

.form-checkbox label {
  cursor: pointer;
  margin: 0;
  line-height: 1.35;
}

.form-checkbox a {
  color: #a78bfa;
  text-decoration: none;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

/* ========================================
   ERRORS
======================================== */
.auth-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

.auth-inline-info {
  margin: 0;
  color: rgba(241, 245, 249, 0.88);
  font-size: 0.9rem;
  text-align: center;
}

.field-error {
  color: #f87171;
  font-size: 0.75rem;
  min-height: 1rem;
}

.field-error-message {
  display: block;
  color: #ef4444;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.375rem;
  min-height: 1.2rem;
}

.field-error-visible {
  display: block;
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.35rem;
  min-height: 1rem;
}

/* ========================================
   REGISTRATION FORM
======================================== */
.register-form-panel {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  /* Masque la scrollbar tout en gardant le scroll fonctionnel */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge */
}
.register-form-panel::-webkit-scrollbar {
  display: none;               /* Chrome / Safari */
}

.register-form-panel.register-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.register-form-panel.register-card > * {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

.register-form-panel.register-card .auth-form {
  justify-content: center;
}

/* ========================================
   SIRET VERIFIED INFO BLOCK
======================================== */
.siret-info-block {
  margin: 0.25rem 0 0.75rem;
  padding: 0.75rem 0.875rem;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 12px;
  animation: siretFadeIn 0.25s ease;
}

@keyframes siretFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.siret-verified-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.siret-autofill {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  cursor: default !important;
  font-size: 13px !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.siret-info-block .form-group {
  margin-bottom: 0.5rem;
}

.siret-info-block label {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 3px;
}

.register-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.back-btn {
  position: absolute;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Multi-step form */
.form-step {
  display: none;
  animation: slideIn 0.3s ease;
}

.form-step.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* User type cards */
.user-type-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.user-type-card {
  cursor: pointer;
}

.user-type-card input {
  display: none;
}

.user-type-card .card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.user-type-card:hover .card-content {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-type-card input:checked + .card-content {
  background: rgba(167, 139, 250, 0.1);
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-type-card input:checked + .card-content .card-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.card-desc {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

/* Step 2 content visibility */
.step2-content {
  display: none;
}

.step2-content.active {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-actions .auth-btn {
  flex: 1;
  width: auto;
  padding: 0.72rem 1rem;
  font-size: 0.84rem;
  border-radius: 10px;
  box-shadow: none;
}

.form-actions .btn {
  flex: 1;
  width: auto;
  padding: 0.72rem 1rem;
  font-size: 0.84rem;
  border-radius: 10px;
  box-shadow: none;
}

.form-actions .auth-btn:hover,
.form-actions .btn:hover {
  box-shadow: none;
  transform: none;
}

.form-actions #btn-back {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-actions #btn-back:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Loader */
.register-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  padding: 3rem;
  gap: 1rem;
  text-align: center;
}

.loader-spinner {
  display: block;
  margin: 0 auto;
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.register-loader p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Email verification modal */
.email-verify-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.email-verify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(4px);
}

.email-verify-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 1.3rem 1.2rem;
  background: rgba(15, 15, 35, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.email-verify-dialog h2 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
}

.email-verify-dialog p {
  margin: 0.5rem 0 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.email-verify-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.35rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.email-verify-link {
  border: none;
  background: transparent;
  color: #a78bfa;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.email-verify-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verification-text-status {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ef4444;
}

/* ========================================
   SIGN-IN PANEL — compact spacing
======================================== */
.sign-in-container .auth-form {
  gap: 0.7rem;
}

.sign-in-container .form-group {
  margin-top: 0;
  gap: 0.45rem;
}

.sign-in-container .forgot-link {
  margin-top: -0.25rem;
}

.sign-in-container .auth-social {
  margin-top: 4px;
}

.sign-in-container .auth-divider {
  margin: 4px 0 6px;
}

/* ========================================
   GOOGLE ERROR MODAL
======================================== */
.google-error-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(4px);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInBackdrop 0.2s ease;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.google-error-dialog {
  background: rgba(15, 15, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: slideUpDialog 0.25s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUpDialog {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.google-error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.google-error-icon svg {
  width: 26px;
  height: 26px;
  color: #f87171;
  stroke: #f87171;
}

.google-error-dialog h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.google-error-dialog p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.55;
}

.google-error-actions {
  display: flex;
  gap: 0.75rem;
}

.google-error-actions .btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.google-error-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.google-error-actions .btn-primary {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.google-error-actions .btn-primary:hover {
  opacity: 0.9;
}

/* ========================================
   HONEYPOT (hidden)
======================================== */
.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  body.auth-shell {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .container {
    width: 100%;
    min-height: auto;
    border-radius: 20px;
  }

  .sign-in-container,
  .sign-up-container {
    position: relative;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
    z-index: 5;
    padding: 1.5rem 1.25rem;
  }

  .sign-up-container {
    display: none;
  }

  .container.right-panel-active .sign-in-container {
    display: none;
  }

  .container.right-panel-active .sign-up-container {
    display: flex;
  }

  .overlay-container {
    display: none;
  }

  .mobile-switch {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .login-logo {
    height: 3.25rem;
    transform: scale(1.45);
  }

  .form-panel h1,
  .register-header h1 {
    font-size: 1.6rem;
  }

  .form-subtitle {
    margin: 0.35rem 0 0.25rem;
  }

  .auth-form {
    gap: 1rem;
  }

  .form-group {
    gap: 0.5rem;
    margin-top: 0.25rem;
  }

  .forgot-link {
    margin-top: -0.2rem;
  }

  .auth-btn,
  .auth-social-btn {
    min-height: 50px;
  }

  .auth-divider {
    margin: 6px 0 8px;
  }
}

@media (max-width: 480px) {
  body.auth-shell {
    padding: 0.35rem;
    padding-top: 0.35rem;
  }

  .auth-wrap {
    max-width: 100%;
  }

  .container {
    border-radius: 18px;
  }

  .sign-in-container,
  .sign-up-container {
    padding: 1.1rem 1rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .login-logo {
    height: 2.75rem;
    transform: scale(1.28);
  }

  .form-panel h1,
  .register-header h1 {
    font-size: 1.45rem;
  }

  .form-subtitle {
    font-size: 0.84rem;
    margin: 0.25rem 0 0.1rem;
  }

  .auth-form {
    gap: 0.85rem;
  }

  .form-group {
    gap: 0.4rem;
    margin-top: 0.15rem;
  }

  input,
  select {
    padding: 0.8rem 0.95rem;
    font-size: 0.88rem;
  }

  .auth-btn {
    padding: 0.82rem 1.25rem;
  }

  .auth-social-btn {
    min-height: 48px;
  }

  .mobile-switch {
    margin-top: 1rem;
  }

  .auth-toast-stack {
    top: 10px;
    width: min(94vw, 420px);
  }

  .auth-toast {
    font-size: 13px;
    padding: 12px 14px;
  }

  .user-type-card .card-content {
    padding: 0.875rem 1rem;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }
}
