/* ===========================
   CarreiraMais — Auth Forms
   (Login, Cadastro, Empresa)
   =========================== */

.auth-wrapper {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}

.auth-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px; padding: 40px;
}

.auth-header     { text-align: center; margin-bottom: 32px; }
.auth-logo       { color: var(--primary); font-size: 2rem; margin-bottom: 12px; }
.auth-header h2  { font-size: 1.6rem; margin-bottom: 8px; }
.auth-header p   { color: var(--text-muted); font-size: .9rem; }
.auth-footer     { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--text-muted); }
.auth-footer a   { font-weight: 600; }

/* ---- Wizard / Stepper ---- */
.wizard-wrapper { width: 100%; max-width: 700px; margin: 0 auto; padding: 40px 24px; }

.stepper {
  display: flex; align-items: center; margin-bottom: 40px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border);
}
.stepper-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 8px; position: relative; text-align: center;
}
.stepper-item:not(:last-child)::after {
  content: ''; position: absolute;
  top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--border); z-index: 0;
}
.stepper-item.done:not(:last-child)::after { background: var(--secondary); }
.stepper-circle {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--bg); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; position: relative; z-index: 1;
  transition: all var(--transition);
}
.stepper-item.active .stepper-circle { border-color: var(--primary); background: var(--primary); color: #fff; }
.stepper-item.done   .stepper-circle  { border-color: var(--secondary); background: var(--secondary); color: #fff; }
.stepper-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.stepper-item.active .stepper-label  { color: var(--primary); }
.stepper-item.done   .stepper-label  { color: var(--secondary); }

/* Wizard step */
.wizard-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 36px;
}
.wizard-step      { display: none; animation: fadeIn .3s ease; }
.wizard-step.active{ display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

.wizard-title     { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.wizard-subtitle  { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.wizard-nav       { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Skills selector */
.skills-wrapper { display: flex; flex-direction: column; gap: 24px; }
.skill-category h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.skill-category h4::before { content: ''; display: block; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }

.custom-skill-row { display: flex; gap: 8px; margin-top: 8px; }
.custom-skill-row .form-input { flex: 1; }

/* Selected skills preview */
.selected-preview {
  margin-top: 20px; padding: 16px;
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}
.selected-preview h5 { font-size: .8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.selected-preview .tags-row { min-height: 28px; }

/* Success screen */
.success-screen {
  text-align: center; padding: 20px;
  display: none; animation: fadeIn .4s ease;
}
.success-screen.show { display: block; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: #d1fae5; color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 20px;
  animation: bounceIn .5s ease;
}
@keyframes bounceIn {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.success-screen h2 { margin-bottom: 10px; }
.success-screen p  { color: var(--text-muted); margin-bottom: 24px; }

/* Checkbox & Radio */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item  { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-item input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.checkbox-item label { font-size: .875rem; cursor: pointer; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-btn   {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); cursor: pointer;
  font-size: .875rem; font-weight: 500; transition: all var(--transition);
}
.radio-btn input { display: none; }
.radio-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Forgot password modal */
.forgot-link { font-size: .8rem; color: var(--primary); cursor: pointer; text-decoration: underline; }

@media (max-width: 600px) {
  .auth-card    { padding: 28px 20px; }
  .wizard-card  { padding: 24px 16px; }
  .stepper      { padding: 16px; }
  .stepper-label{ display: none; }
}
