/* ============================================================
   MOCKTAN HIRING — AUTH & APPLICATION PAGES STYLES
   ============================================================ */

/* ============================================================
   AUTH LAYOUT
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--color-off-white);
}

.auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.auth-right {
  width: 480px;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.08;
  top: -100px;
  right: -100px;
}
.auth-right::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--color-accent-light);
  border-radius: 50%;
  opacity: 0.06;
  bottom: -50px;
  left: -50px;
}

.auth-right__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}
.auth-right__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}
.auth-right__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  line-height: var(--leading-relaxed);
}

/* Auth Form Container */
.auth-form-container {
  width: 100%;
  max-width: 440px;
}

.auth-form__header {
  margin-bottom: var(--space-8);
}

.auth-form__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  color: var(--color-black);
}
.auth-form__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.auth-form__logo span {
  color: var(--color-accent);
}

.auth-form__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: var(--space-2);
}
.auth-form__subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form__divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}
.auth-form__divider::before,
.auth-form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-200);
}

.auth-form__footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-4);
}
.auth-form__footer a {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--duration-fast);
}
.auth-form__footer a:hover {
  color: var(--color-accent-hover);
}

/* ============================================================
   OTP INPUT
   ============================================================ */
.otp-inputs {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: all var(--duration-fast);
  font-family: var(--font-display);
}
.otp-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.otp-input.filled {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.otp-timer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-4);
}
.otp-timer button {
  color: var(--color-accent);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}
.otp-timer button:disabled {
  color: var(--color-gray-400);
  cursor: not-allowed;
}

/* ============================================================
   APPLICATION STEPS
   ============================================================ */
.apply-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  padding: var(--space-4) 0;
}

.apply-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.apply-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  transition: all var(--duration-normal);
}
.apply-step.active .apply-step__number {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}
.apply-step.completed .apply-step__number {
  background: var(--color-success);
  color: var(--color-white);
}

.apply-step__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gray-400);
  transition: color var(--duration-fast);
}
.apply-step.active .apply-step__label {
  color: var(--color-black);
}
.apply-step.completed .apply-step__label {
  color: var(--color-success);
}

.apply-step__connector {
  width: 40px;
  height: 2px;
  background: var(--color-gray-200);
  transition: background var(--duration-normal);
}
.apply-step.completed + .apply-step__connector,
.apply-step__connector.completed {
  background: var(--color-success);
}

/* ============================================================
   APPLICATION FORM PANELS
   ============================================================ */
.apply-panel {
  display: none;
  animation: panel-in 0.5s var(--ease-out);
}
.apply-panel.active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   PASSWORD STRENGTH
   ============================================================ */
.password-strength {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.password-strength__bar {
  flex: 1;
  height: 3px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast);
}
.password-strength__bar.weak { background: var(--color-error); }
.password-strength__bar.medium { background: var(--color-warning); }
.password-strength__bar.strong { background: var(--color-success); }

.password-strength__text {
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  font-weight: 500;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.success-state {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  animation: success-in 0.6s var(--ease-spring);
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-state__icon {
  width: 80px;
  height: 80px;
  background: var(--color-success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: success-pulse 2s ease-in-out infinite;
}
@keyframes success-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
}

.success-state__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: var(--space-3);
}
.success-state__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: var(--leading-relaxed);
  max-width: 400px;
  margin: 0 auto var(--space-8);
}

/* ============================================================
   POSITION SELECTOR (in apply flow)
   ============================================================ */
.position-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.position-option {
  padding: var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast);
  position: relative;
}
.position-option:hover {
  border-color: var(--color-gray-300);
}
.position-option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.position-option.selected::after {
  content: '✓';
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.position-option__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
}
.position-option__dept {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .auth-right {
    width: 380px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
  }
  .auth-right {
    width: 100%;
    padding: var(--space-8);
    order: -1;
    min-height: auto;
  }
  .auth-right__content {
    padding: var(--space-6) 0;
  }
  .auth-right__title {
    font-size: var(--text-xl);
  }
  .auth-left {
    padding: var(--space-6);
  }
  .otp-input {
    width: 44px;
    height: 52px;
    font-size: var(--text-xl);
  }
  .apply-step__label {
    display: none;
  }
  .apply-step__connector {
    width: 24px;
  }
}
