/* Rankviz Ops – login page */
html, body.rvl-body { margin: 0; min-height: 100%; }
body.rvl-body { background: #F3F5F9; color: #0B1020; font-family: 'Geist', 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.rvl *, .rvl *::before, .rvl *::after { box-sizing: border-box; }
.rvl { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); }

/* ---------- left: animated stage ---------- */
.rvl-stage { position: relative; overflow: hidden; background: #0A0E1A; color: #E8ECF7; padding: 44px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 40px; }
.rvl-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); animation: rvl-pan 30s linear infinite; }
.rvl-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(35,80,245,.32), transparent 65%); filter: blur(10px); animation: rvl-float 14s ease-in-out infinite; }
.rvl-logo { position: relative; width: 150px; height: auto; animation: rvl-in .7s cubic-bezier(.2,.8,.2,1) both; }

.rvl-board { position: relative; margin-top: auto; height: 340px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; animation: rvl-in .9s .15s cubic-bezier(.2,.8,.2,1) both; }
.rvl-col { border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.rvl-col-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #C3C9DA; padding: 2px 4px 4px; }
.rvl-col-h .d { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.d1 { background: #9AA3B8; } .d2 { background: #4D7BFF; } .d3 { background: #34C47A; }
.rvl-ghost { height: 62px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.08); }
.rvl-ghost.short { height: 44px; }

.rvl-card { position: absolute; width: calc((100% - 28px) / 3); padding: 12px 13px; border-radius: 14px; background: #FFFFFF; color: #0B1020; box-shadow: 0 10px 30px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 6px; opacity: 0; animation: rvl-move 15s cubic-bezier(.65,0,.35,1) infinite; }
.rvl-card.c1 { top: 40px; animation-delay: 0s; }
.rvl-card.c2 { top: 138px; animation-delay: -5s; }
.rvl-card.c3 { top: 236px; animation-delay: -10s; }
.rvl-card strong { font-size: 13px; font-weight: 600; line-height: 1.3; }
.rvl-id { font-family: 'Geist Mono', monospace; font-size: 10.5px; color: #5A6075; }
.rvl-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #5A6075; }
.rvl-av { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rvl-timer, .rvl-done { position: absolute; right: 10px; top: -11px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; opacity: 0; }
.rvl-timer { background: #0B1020; color: #fff; font-family: 'Geist Mono', monospace; animation: rvl-timer 15s linear infinite; }
.rvl-timer i { width: 7px; height: 7px; border-radius: 50%; background: #F87171; animation: rvl-pulse 1.2s ease-in-out infinite; }
.rvl-timer em { font-style: normal; }
.rvl-done { background: #EAF7EF; color: #166534; animation: rvl-done 15s linear infinite; }
.rvl-card.c1 .rvl-timer, .rvl-card.c1 .rvl-done { animation-delay: 0s; }
.rvl-card.c2 .rvl-timer, .rvl-card.c2 .rvl-done { animation-delay: -5s; }
.rvl-card.c3 .rvl-timer, .rvl-card.c3 .rvl-done { animation-delay: -10s; }

.rvl-copy { position: relative; max-width: 560px; animation: rvl-in .9s .3s cubic-bezier(.2,.8,.2,1) both; }
.rvl-copy h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; color: #fff; }
.rvl-copy p { margin: 0; font-size: 15px; color: #9AA3B8; }

/* ---------- right: form ---------- */
.rvl-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.rvl-form-wrap { width: 100%; max-width: 410px; display: flex; flex-direction: column; gap: 22px; }
.rvl-form-wrap > * { animation: rvl-in .7s cubic-bezier(.2,.8,.2,1) both; }
.rvl-form-wrap > *:nth-child(2) { animation-delay: .08s; }
.rvl-form-wrap > *:nth-child(3) { animation-delay: .16s; }
.rvl-form-wrap > *:nth-child(4) { animation-delay: .24s; }
.rvl-form-wrap > *:nth-child(5) { animation-delay: .32s; }
.rvl-mobile-logo { display: none; border-radius: 12px; }
.rvl-kicker { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #2350F5; }
.rvl-head h2 { margin: 8px 0 6px; font-size: 30px; letter-spacing: -.035em; font-weight: 650; }
.rvl-head p { margin: 0; color: #5A6075; font-size: 14.5px; }

.rvl-alert { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.rvl-alert.is-error { background: #FDECEB; color: #912018; }
.rvl-alert.is-info { background: #EAF0FF; color: #1B2F8F; }

.rvl-form { display: flex; flex-direction: column; gap: 14px; }
.rvl-field { position: relative; }
.rvl-field input { width: 100%; height: 58px; padding: 22px 46px 8px 16px; border-radius: 14px; border: 1.5px solid #DFE3EC; background: #FFFFFF; font: inherit; font-size: 15px; color: #0B1020; outline: none; transition: border-color .18s, box-shadow .18s; }
.rvl-field input:hover { border-color: #C3C9DA; }
.rvl-field input:focus { border-color: #2350F5; box-shadow: 0 0 0 4px rgba(35,80,245,.14); }
.rvl-field label { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #6B7185; pointer-events: none; transition: top .18s, font-size .18s, color .18s, transform .18s; }
.rvl-field input:focus + label, .rvl-field input:not(:placeholder-shown) + label { top: 15px; transform: none; font-size: 11.5px; font-weight: 600; color: #2350F5; }
.rvl-field input:not(:focus):not(:placeholder-shown) + label { color: #5A6075; }
.rvl-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #6B7185; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rvl-eye:hover, .rvl-eye[aria-pressed="true"] { color: #2350F5; background: #EAF0FF; }
.rvl-caps { min-height: 0; font-size: 12.5px; color: #9A3412; margin-top: -6px; }
.rvl-caps:empty { display: none; }
.has-error .rvl-field { animation: rvl-shake .45s cubic-bezier(.36,.07,.19,.97) both; }
.has-error .rvl-field input { border-color: #F5C2BD; }

.rvl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.rvl-row a { color: #2350F5; text-decoration: none; font-weight: 550; }
.rvl-row a:hover { text-decoration: underline; }
.rvl-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #3A4058; }
.rvl-check input { width: 17px; height: 17px; accent-color: #2350F5; }

.rvl-submit { position: relative; height: 54px; border: 0; border-radius: 14px; background: #2350F5; color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; transition: background .18s, transform .12s, box-shadow .18s; box-shadow: 0 10px 24px rgba(35,80,245,.28); }
.rvl-submit:hover { background: #1A3FD1; }
.rvl-submit:active { transform: translateY(1px); }
.rvl-submit .rvl-arrow { transition: transform .2s; }
.rvl-submit:hover .rvl-arrow { transform: translateX(4px); }
.rvl-submit::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.rvl-submit:hover::after { animation: rvl-shine .8s ease; }
.rvl-spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rvl-spin .7s linear infinite; }
.rvl-submit.is-loading { pointer-events: none; }
.rvl-submit.is-loading .rvl-submit-text, .rvl-submit.is-loading .rvl-arrow { display: none; }
.rvl-submit.is-loading .rvl-spinner { display: inline-block; }
.rvl-foot { margin: 0; font-size: 12.5px; color: #6B7185; }

.rvl a:focus-visible, .rvl button:focus-visible, .rvl input:focus-visible { outline: 2px solid #4D7BFF; outline-offset: 2px; }

/* ---------- keyframes ---------- */
@keyframes rvl-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rvl-move {
  0% { left: 0; opacity: 0; transform: translateY(10px); }
  5% { left: 0; opacity: 1; transform: none; }
  26% { left: 0; transform: none; }
  30% { transform: translateY(-6px) rotate(-1.2deg); }
  34% { left: calc((100% + 14px) / 3); transform: none; }
  58% { left: calc((100% + 14px) / 3); transform: none; }
  62% { transform: translateY(-6px) rotate(1.2deg); }
  66% { left: calc((100% + 14px) / 3 * 2); transform: none; }
  92% { left: calc((100% + 14px) / 3 * 2); opacity: 1; transform: none; }
  100% { left: calc((100% + 14px) / 3 * 2); opacity: 0; transform: translateY(-8px); }
}
@keyframes rvl-timer { 0%, 35% { opacity: 0; } 38%, 56% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes rvl-done { 0%, 67% { opacity: 0; transform: scale(.8); } 70%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
@keyframes rvl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes rvl-pan { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }
@keyframes rvl-float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-60px, 50px); } }
@keyframes rvl-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes rvl-spin { to { transform: rotate(360deg); } }
@keyframes rvl-shine { to { left: 120%; } }

/* ---------- responsive & motion ---------- */
@media (max-width: 960px) {
  .rvl { grid-template-columns: 1fr; }
  .rvl-stage { display: none; }
  .rvl-mobile-logo { display: block; }
  .rvl-panel { min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .rvl *, .rvl *::before, .rvl *::after { animation: none !important; transition: none !important; }
  .rvl-card { opacity: 1; }
  .rvl-card.c2 { left: calc((100% + 14px) / 3); }
  .rvl-card.c3 { left: calc((100% + 14px) / 3 * 2); }
  .rvl-card.c2 .rvl-timer, .rvl-card.c3 .rvl-done { opacity: 1; }
}
