/* =====================================================================
 * Canonical Merge: auth.css
 * ===================================================================== */
/* public/assets/css/auth.css
 * Shared auth page styles: login + password reset pages.
 */

.cf-auth-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.cf-auth-shell{
  padding-block: clamp(24px, 6vh, 52px);
}

.cf-auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .cf-auth-grid {
    grid-template-columns: 1fr;
  }
}

.cf-login-hero {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(37,99,235,.16), transparent 58%),
    radial-gradient(900px 420px at 92% 10%, rgba(236,72,153,.11), transparent 60%),
    radial-gradient(900px 420px at 40% 110%, rgba(34,197,94,.08), transparent 60%),
    rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  position: relative;
  padding: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cf-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .40rem .70rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.9);
  font-weight: 800;
  letter-spacing: -.02em;
  width: fit-content;
}

.cf-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.08);
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 900;
}

.cf-login-title {
  font-weight: 900;
  letter-spacing: -.03em;
  font-size: var(--cf-type-hero);
  line-height: 1.15;
  margin: 14px 0 6px;
}

.cf-login-sub {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 14px;
}

.cf-hero-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(15,23,42,.72);
  font-size: .93rem;
}

.cf-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: rgba(15,23,42,.65);
  font-size: .86rem;
}

.cf-login-card,
.cf-auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(250,252,255,.96));
  box-shadow: 0 10px 24px rgba(16,24,40,.07);
  position: relative;
  overflow: hidden;
}

.cf-login-card::before,
.cf-auth-card::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24%;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0));
}

.cf-login-card {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cf-auth-card {
  max-width: 820px;
  margin: 0 auto;
}

.cf-auth-card .card-body {
  padding: 1.5rem;
}

.cf-login-h {
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: var(--cf-type-page);
  margin-bottom: 4px;
}

.cf-login-sub-h {
  color: var(--muted);
  font-size: var(--cf-type-body);
  margin-bottom: 14px;
}

.cf-auth-label {
  font-size: .86rem;
  color: rgba(15,23,42,.70);
  font-weight: 700;
}

.cf-pw-wrap {
  position: relative;
}

.cf-pw-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.96);
  border-radius: var(--cf-control-radius);
  padding: .25rem .5rem;
  font-size: .82rem;
  color: rgba(15,23,42,.72);
  cursor: pointer;
  user-select: none;
}

.cf-auth-btn {
  border-radius: var(--cf-control-radius);
  font-weight: var(--cf-btn-fw);
}

.cf-auth-qr{
  border: 1px solid #dbe3f2;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.cf-auth-hint {
  color: rgba(15,23,42,.60);
  font-size: .84rem;
}

.cf-2fa-tabs{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
}

.cf-2fa-tab{
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.82);
  border-radius: 999px;
  padding: .34rem .68rem;
  font-size: .82rem;
  font-weight: 760;
  line-height: 1.1;
}

.cf-2fa-tab.is-active{
  background: #1e40af;
  color: #fff;
  border-color: rgba(30,64,175,.55);
  box-shadow: 0 8px 14px rgba(30,64,175,.18);
}

.cf-2fa-tab.is-done{
  background: rgba(220,252,231,.92);
  color: #14532d;
  border-color: rgba(22,163,74,.30);
}

@media (hover: hover) and (pointer: fine) {
  .cf-pw-toggle:hover{
    background: rgba(255,255,255,.95);
  }

  .cf-2fa-tab:hover{
    background: rgba(248,250,252,.98);
  }
}

.cf-2fa-panel{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 10px;
}

.cf-caps-hint {
  display: none;
  color: #b45309;
  font-size: .84rem;
  font-weight: 700;
}

.cf-caps-hint.show {
  display: block;
}

@media (max-width: 767.98px) {
  .cf-auth-shell{
    padding-block: 16px 22px;
  }

  .cf-auth-wrap{
    max-width: 460px;
  }

  .cf-auth-grid{
    gap: 12px;
  }

  .cf-login-card,
  .cf-login-hero{
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cf-login-card{
    order: 1;
  }

  .cf-login-hero{
    order: 2;
    gap: 10px;
  }

  .cf-brand-badge{
    padding: .34rem .60rem;
    gap: .48rem;
    font-size: .90rem;
  }

  .cf-brand-icon{
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  .cf-login-title{
    font-size: var(--cf-type-hero);
    margin: 10px 0 4px;
  }

  .cf-login-sub{
    font-size: .88rem;
    margin-bottom: 8px;
  }

  .cf-hero-list{
    display: none;
  }

  .cf-hero-foot{
    margin-top: 6px;
    font-size: .81rem;
    gap: 8px;
  }

  .cf-login-h{
    font-size: 1.04rem;
    margin-bottom: 2px;
  }

  .cf-login-sub-h{
    font-size: .84rem;
    margin-bottom: 12px;
  }

  .cf-auth-label{
    font-size: .82rem;
  }

  .cf-pw-toggle{
    right: 8px;
    padding: .20rem .44rem;
    font-size: .78rem;
  }

  .cf-auth-btn{
    min-height: 42px;
  }

  .cf-auth-hint{
    font-size: .80rem;
    line-height: 1.4;
  }

  .cf-auth-card{
    border-radius: 18px;
  }

  .cf-auth-card .card-body{
    padding: 1rem;
  }
}

