@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ──────────────────────────────────────────────────────────────────────────
   Full layout reset for auth-only pages.
   This file is injected ONLY on /candidate/login|signup|reset|verify routes.
   ────────────────────────────────────────────────────────────────────────── */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

#wrapwrap {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  display: block !important;
}

#wrapwrap > main {
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  display: block !important;
}

/* Hide Odoo framework a11y skip link */
.o_skip_to_content { display: none !important; }

.cp-auth-page {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

.cp-auth-page,
.cp-auth-page * {
  font-family: 'Outfit', sans-serif;
}

.cp-auth-bg-logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cp-auth-bg-logo {
  position: absolute;
  background-image: url('/candidate_portal/static/src/img/betopia-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: .11;
  animation-fill-mode: both;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.cp-auth-bg-logo.l1  { width: 160px; height: 160px; top: 6%;  left: -2%;  animation: cp-logo-f1 14s ease-in-out infinite; }
.cp-auth-bg-logo.l2  { width: 120px; height: 120px; top: 20%; right: 2%;  animation: cp-logo-f2 11s ease-in-out infinite 2s; }
.cp-auth-bg-logo.l3  { width: 200px; height: 200px; top: 52%; left: 20%; animation: cp-logo-f3 17s ease-in-out infinite 1s; }
.cp-auth-bg-logo.l4  { width: 100px; height: 100px; top: 74%; left: 1%;  animation: cp-logo-f4 9s ease-in-out infinite 3s; }
.cp-auth-bg-logo.l5  { width: 140px; height: 140px; top: 80%; right: 6%; animation: cp-logo-f5 13s ease-in-out infinite .5s; }
.cp-auth-bg-logo.l6  { width: 110px; height: 110px; top: 38%; right: 22%; animation: cp-logo-f1 16s ease-in-out infinite 4s; }
.cp-auth-bg-logo.l7  { width: 90px;  height: 90px;  top: 4%;  right: 30%; animation: cp-logo-f2 10s ease-in-out infinite 1.5s; }
.cp-auth-bg-logo.l8  { width: 130px; height: 130px; top: 44%; left: 44%; animation: cp-logo-f3 12s ease-in-out infinite 2.5s; }
.cp-auth-bg-logo.l9  { width: 80px;  height: 80px;  top: 14%; left: 52%; animation: cp-logo-f4 15s ease-in-out infinite .8s; }
.cp-auth-bg-logo.l10 { width: 170px; height: 170px; top: 63%; right: 28%; animation: cp-logo-f5 18s ease-in-out infinite 3.5s; }
.cp-auth-bg-logo.l11 { width: 95px;  height: 95px;  top: 30%; left: 8%;  animation: cp-logo-f1 10s ease-in-out infinite 1.2s; }
.cp-auth-bg-logo.l12 { width: 115px; height: 115px; top: 88%; left: 48%; animation: cp-logo-f2 13s ease-in-out infinite 4.5s; }

@keyframes cp-logo-f1 {
  0%   { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); opacity: .11; }
  40%  { transform: translate3d(0, -24px, 0) rotate(4deg) scale(1.03); opacity: .17; }
  70%  { transform: translate3d(0, 10px, 0) rotate(-2deg) scale(.98); opacity: .09; }
  100% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); opacity: .11; }
}
@keyframes cp-logo-f2 {
  0%   { transform: translate3d(0, 0, 0) rotate(12deg) scale(1); opacity: .10; }
  35%  { transform: translate3d(0, 18px, 0) rotate(-5deg) scale(1.05); opacity: .16; }
  65%  { transform: translate3d(0, -14px, 0) rotate(8deg) scale(.97); opacity: .08; }
  100% { transform: translate3d(0, 0, 0) rotate(12deg) scale(1); opacity: .10; }
}
@keyframes cp-logo-f3 {
  0%   { transform: translate3d(0, 0, 0) rotate(-20deg) scale(1); opacity: .09; }
  50%  { transform: translate3d(0, -28px, 0) rotate(10deg) scale(1.06); opacity: .15; }
  100% { transform: translate3d(0, 0, 0) rotate(-20deg) scale(1); opacity: .09; }
}
@keyframes cp-logo-f4 {
  0%   { transform: translate3d(0, 0, 0) rotate(5deg) scale(1); opacity: .10; }
  45%  { transform: translate3d(0, 24px, 0) rotate(-12deg) scale(1.04); opacity: .16; }
  100% { transform: translate3d(0, 0, 0) rotate(5deg) scale(1); opacity: .10; }
}
@keyframes cp-logo-f5 {
  0%   { transform: translate3d(0, 0, 0) rotate(-6deg) scale(1); opacity: .08; }
  60%  { transform: translate3d(0, -18px, 0) rotate(15deg) scale(1.05); opacity: .14; }
  100% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(1); opacity: .08; }
}

@keyframes cp-slide-right {
  from { opacity: 0; transform: translate3d(30px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes cp-slide-left {
  from { opacity: 0; transform: translate3d(-30px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes cp-fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.cp-auth-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1080px;
  min-height: 490px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .11), 0 2px 8px rgba(0, 0, 0, .06);
}

.cp-auth-wrapper--login  { animation: cp-slide-right .32s cubic-bezier(.25, .46, .45, .94) both; }
.cp-auth-wrapper--signup { animation: cp-slide-left  .32s cubic-bezier(.25, .46, .45, .94) both; }
.cp-auth-wrapper--reset,
.cp-auth-wrapper--verify { animation: cp-fade-up .28s ease both; }

.cp-auth-brand {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
  background: #F47920;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cp-auth-brand .cp-auth-brand-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 0;
}

.cp-auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .45) 100%);
  z-index: 1;
}

.cp-auth-brand .cp-auth-brand-caption {
  position: absolute;
  bottom: 32px;
  left: 30px;
  right: 30px;
  z-index: 2;
  color: #fff;
}

.cp-auth-brand .cp-auth-brand-caption h4 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 5px;
}

.cp-auth-brand .cp-auth-brand-caption p {
  font-size: .8rem;
  opacity: .8;
  margin: 0;
}

.cp-auth-form-panel {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 52px;
  overflow-y: auto;
}

.cp-auth-form-inner {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.cp-auth-logo {
  margin-bottom: 20px;
  display: block;
  animation: cp-fade-up .28s .05s both;
}

.cp-auth-form-inner h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.2;
  animation: cp-fade-up .28s .08s both;
}

.cp-auth-subtitle {
  font-size: .83rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: cp-fade-up .28s .11s both;
}

.cp-auth-field { margin-bottom: 12px; }
.cp-auth-field label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

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

.cp-auth-input-wrapper i.fa {
  position: absolute;
  left: 12px;
  color: transparent;
  font-size: 0;
  z-index: 1;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-auth-input-wrapper i.fa::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.cp-auth-input-wrapper .fa-envelope::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpolyline points='3,7 12,13 21,7'/%3E%3C/svg%3E");
}

.cp-auth-input-wrapper .fa-lock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

.cp-auth-input-wrapper .fa-user::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.cp-auth-input-wrapper .fa-phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.77.62 2.62a2 2 0 0 1-.45 2.11L8.1 9.62a16 16 0 0 0 6.29 6.29l1.17-1.17a2 2 0 0 1 2.11-.45c.85.29 1.72.5 2.62.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.cp-auth-input-wrapper .fa-map-marker::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-5.33-7-11a7 7 0 0 1 14 0c0 5.67-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.cp-auth-input-wrapper .fa-key::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='15' r='4'/%3E%3Cpath d='M11 15h10M17 11v8M21 13v4'/%3E%3C/svg%3E");
}

.cp-auth-input-wrapper input {
  width: 100%;
  height: 38px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 0 36px 0 33px;
  font-size: .92rem;
  color: #0f172a;
  background: #fff;
  outline: none;
}

.cp-auth-input-wrapper input:focus {
  border-color: #F47920;
  box-shadow: 0 0 0 3px rgba(244, 121, 32, .12);
}

.cp-password-toggle {
  left: auto !important;
  right: 12px;
  cursor: pointer;
  font-size: 0 !important;
  color: transparent !important;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-password-toggle::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.cp-password-toggle.fa-eye-slash::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19C5 19 1 12 1 12a21.77 21.77 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A10.86 10.86 0 0 1 12 4c7 0 11 8 11 8a22.5 22.5 0 0 1-2.17 3.19'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

.cp-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 12px;
}

.cp-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: #64748b;
}

.cp-auth-check input { margin: 0; }

.cp-auth-link {
  color: #F47920;
  text-decoration: none;
  font-weight: 700;
}

.cp-auth-link:hover { color: #d9660f; }

.cp-auth-btn-primary {
  width: 100%;
  border: 0;
  border-radius: 9px;
  height: 40px;
  background: linear-gradient(90deg, #F47920, #e16e13);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.cp-auth-btn-primary:hover { filter: brightness(.98); }

.cp-auth-alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

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

.cp-auth-alert.success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.cp-auth-bottom-link {
  text-align: center;
  font-size: .84rem;
  color: #64748b;
  margin-top: 14px;
}

.cp-auth-bottom-link a {
  color: #F47920;
  text-decoration: none;
  font-weight: 700;
}

.cp-auth-or-divider {
  margin: 16px 0;
  text-align: center;
  color: #94a3b8;
  font-size: .78rem;
  position: relative;
}

.cp-auth-or-divider::before,
.cp-auth-or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  border-top: 1px solid #e2e8f0;
}

.cp-auth-or-divider::before { left: 0; }
.cp-auth-or-divider::after  { right: 0; }

.cp-auth-form-panel .row {
  display: flex;
  gap: 8px;
}

.cp-auth-form-panel .row .col-6 {
  flex: 1 1 0;
  min-width: 0;
}

.cp-auth-form {
  animation: cp-fade-up .3s .14s both;
}

.cp-auth-brand .cp-auth-brand-caption {
  animation: cp-fade-up .38s .18s both;
}

.o_skip_to_content,
a.o_skip_to_content {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cp-auth-wrapper,
  .cp-auth-wrapper--login,
  .cp-auth-wrapper--signup,
  .cp-auth-wrapper--reset,
  .cp-auth-wrapper--verify,
  .cp-auth-logo,
  .cp-auth-form,
  .cp-auth-brand .cp-auth-brand-caption,
  .cp-auth-bg-logo,
  .cp-auth-form-inner h3,
  .cp-auth-subtitle {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 820px) {
  .cp-auth-wrapper {
    flex-direction: column;
    max-width: 480px;
    min-height: auto;
    border-radius: 12px;
  }

  .cp-auth-brand {
    flex: 0 0 260px;
    min-height: 260px;
    order: -1 !important;
  }

  .cp-auth-form-panel {
    order: 1 !important;
    padding: 28px 26px;
  }
}

@media (max-width: 480px) {
  .cp-auth-page { padding: 10px; }
  .cp-auth-brand { flex: 0 0 200px; min-height: 200px; }
  .cp-auth-form-panel { padding: 22px 16px; }
  .cp-auth-form-inner h3 { font-size: 1.45rem; }
}