/**
 * Jobs Academy - User Authentication Modern Stylesheet (Blue Theme)
 * Location: public/external_assets/custom/css/user-auth.css
 */

:root {
  --auth-primary: #1d4ed8;
  --auth-primary-hover: #1e40af;
  --auth-primary-light: #eff6ff;
  --auth-secondary: #0ea5e9;
  --auth-accent: #38bdf8;
  --auth-dark: #0f172a;
  --auth-slate: #334155;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-card-bg: #ffffff;
  --auth-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #2563eb 100%);
}

.auth-page-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 45px 15px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Dual-pane Container */
.auth-card-container {
  width: 100%;
  max-width: 1040px;
  background: var(--auth-card-bg);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  position: relative;
}

/* Single-pane Container (Forgot / Reset) */
.auth-card-single {
  width: 100%;
  max-width: 530px;
  background: var(--auth-card-bg);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.auth-card-single::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1d4ed8 0%, #38bdf8 100%);
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--auth-primary-light);
  color: var(--auth-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px -4px rgba(29, 78, 216, 0.2);
}

.brand-logo-center {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo-center img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

/* Left Showcase Banner */
.auth-side-banner {
  background: var(--auth-gradient);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.auth-side-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.auth-side-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.brand-logo-card {
  display: inline-block;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  margin-bottom: 30px;
}

.brand-logo-card img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.auth-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--auth-accent);
  font-size: 16px;
}

.auth-benefit-text h6 {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.auth-benefit-text p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.auth-stats-badge {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

/* Form Container */
.auth-form-side {
  padding: 48px 44px;
}

.auth-header {
  margin-bottom: 26px;
}

.auth-card-single .auth-header {
  text-align: center;
}

.auth-header h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--auth-dark);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.5;
  margin: 0;
}

.auth-input-group {
  position: relative;
  margin-bottom: 18px;
}

.auth-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-slate);
  margin-bottom: 6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-form-control {
  width: 100%;
  height: 48px;
  padding: 10px 16px 10px 46px;
  font-size: 14px;
  color: var(--auth-dark);
  background-color: #f8fafc;
  border: 1.5px solid var(--auth-border);
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.auth-form-control:focus {
  background-color: #ffffff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
  outline: none;
}

.auth-form-control:focus ~ .auth-input-icon {
  color: var(--auth-primary);
}

.auth-form-control.is-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.auth-form-control.is-invalid ~ .auth-input-icon {
  color: #dc2626 !important;
}

.auth-inline-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #dc2626;
  font-weight: 500;
  margin-top: 5px;
  animation: authFadeIn 0.2s ease-in-out;
}

.auth-inline-error i {
  font-size: 13px;
  flex-shrink: 0;
}

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

.auth-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
  transition: color 0.2s;
}

.auth-password-toggle:hover {
  color: var(--auth-dark);
}

.auth-terms-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0 24px;
}

.auth-terms-box.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}

.auth-terms-box input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--auth-primary);
  cursor: pointer;
}

.auth-terms-box label {
  font-size: 13px;
  color: var(--auth-slate);
  line-height: 1.4;
  margin: 0;
  cursor: pointer;
}

.auth-terms-box a {
  color: var(--auth-primary);
  text-decoration: underline;
  font-weight: 500;
}

.auth-btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 20px -4px rgba(29, 78, 216, 0.38);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 12px 24px -4px rgba(29, 78, 216, 0.48);
  transform: translateY(-2px);
  color: #ffffff;
}

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

.auth-footer-text {
  font-size: 14px;
  color: var(--auth-muted);
  text-align: center;
  margin-top: 24px;
}

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

.auth-footer-text a:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* Alerts Styling */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}

.auth-alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-alert-content {
  flex-grow: 1;
}

.auth-alert-close {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 14px;
}

.auth-alert-close:hover {
  opacity: 1;
}

@media (max-width: 991px) {
  .auth-side-banner {
    display: none;
  }

  .auth-form-side {
    padding: 36px 22px;
  }
}

@media (max-width: 576px) {
  .auth-card-single {
    padding: 32px 20px;
  }
}