/* Kuranko — ocean-inspired login, sign-up and password pages (guest layout only). */
@property --tp-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.tp-auth-main.tp-auth-studio {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 56px 0 76px;
    background: linear-gradient(180deg, #041b36 0%, #041b36 65%, #073a56 100%);
}
.tp-auth-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tp-auth-sky::before {
    content: ''; position: absolute; inset: 0; opacity: .6;
    background-image:
        radial-gradient(1px 1px at 22px 34px, rgba(255, 255, 255, .6), transparent 70%),
        radial-gradient(1px 1px at 128px 92px, rgba(255, 255, 255, .35), transparent 70%),
        radial-gradient(1.5px 1.5px at 206px 160px, rgba(114, 206, 255, .6), transparent 70%),
        radial-gradient(1px 1px at 74px 188px, rgba(140, 200, 255, .5), transparent 70%);
    background-size: 240px 220px;
}
.tp-auth-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: tp-auth-drift 18s ease-in-out infinite alternate; }
.tp-auth-glow-a { width: 560px; height: 560px; top: -180px; right: -120px; background: #00b6ae; }
.tp-auth-glow-b { width: 480px; height: 480px; bottom: -200px; left: -140px; background: #0068c9; animation-delay: -9s; }
.tp-auth-floor {
    position: absolute; left: -25%; right: -25%; bottom: 0; height: 40%;
    background-image: linear-gradient(rgba(8, 169, 224, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 169, 224, .18) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000, transparent 75%); mask-image: linear-gradient(to top, #000, transparent 75%);
    opacity: .45;
}

.tp-auth-studio .tp-auth-layout {
    position: relative;
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr);
    border: 0; border-radius: 28px;
    background: transparent;
    box-shadow: 0 60px 120px -50px rgba(0, 104, 201, .45);
}
.tp-auth-studio .tp-auth-layout::before {
    content: ''; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from var(--tp-angle), rgba(0, 104, 201, .9), rgba(8, 169, 224, .9), rgba(0, 182, 174, .9), rgba(114, 206, 255, .9), rgba(0, 104, 201, .9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: tp-auth-angle 8s linear infinite;
}

/* Form panel */
.tp-auth-studio .tp-auth-form { display: flex; flex-direction: column; justify-content: center; align-self: stretch; padding: 40px 44px; background: #fff; }
.tp-auth-studio .tp-auth-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 26px; color: #587086; font-size: 12px; }
.tp-auth-studio .tp-auth-back i { font-size: 10px; transition: transform .25s; }
.tp-auth-studio .tp-auth-back:hover { color: #0068c9; }
.tp-auth-studio .tp-auth-back:hover i { transform: translateX(-3px); }
.tp-auth-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: 13px; background: #eef5fa; }
.tp-auth-switcher a { padding: 10px; border-radius: 10px; text-align: center; color: #587086; font-size: 13px; font-weight: 600; transition: background .25s, color .25s, box-shadow .25s; }
.tp-auth-switcher a:hover { color: #007e85; }
.tp-auth-switcher a[aria-current=page] { background: #fff; color: #0068c9; box-shadow: 0 4px 14px -6px rgba(6, 38, 75, .2); }
.tp-auth-studio .tp-auth-form > .tp-eyebrow { font-size: 10px; margin-bottom: 12px; }
body.tp-site .tp-auth-studio .tp-auth-form h1 { margin-bottom: 10px; font-size: clamp(30px, 3vw, 38px); letter-spacing: -.045em; }
.tp-auth-studio .tp-auth-description { margin-bottom: 26px; font-size: 14px; }
.tp-auth-studio .tp-auth-field { margin-bottom: 16px; }
.tp-auth-studio .tp-auth-field label { margin-bottom: 7px; color: #294960; font-size: 12px; }
.tp-input-wrap { position: relative; }
.tp-input-wrap > i { position: absolute; left: 16px; top: 50%; z-index: 1; transform: translateY(-50%); color: #64839a; font-size: 14px; pointer-events: none; transition: color .2s; }
.tp-auth-studio .tp-auth-field input:not([type=checkbox]) {
    height: 50px; padding: 12px 14px; border: 1px solid #d7e5ef; border-radius: 12px;
    background: #f8fbfd; color: #06264b; font-size: 14px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.tp-auth-studio .tp-input-wrap input:not([type=checkbox]) { padding-left: 44px; }
.tp-auth-studio .tp-password-wrap input:not([type=checkbox]) { padding-right: 70px; }
.tp-auth-studio .tp-auth-field input:hover { border-color: #bcd5e5; }
.tp-auth-studio .tp-auth-field input:focus { outline: none; border-color: #0068c9; background: #fff; box-shadow: 0 0 0 4px rgba(0, 104, 201, .14); }
.tp-auth-studio .tp-auth-field input:focus-visible { outline: 2px solid transparent; }
.tp-input-wrap:focus-within > i { color: #0068c9; }
.tp-auth-studio .tp-auth-field input[aria-invalid=true] { border-color: #d0496f; background: #fff8fa; }
.tp-auth-studio .tp-password-wrap button { right: 8px; padding: 6px 11px; border-radius: 8px; background: #eaf5fc; color: #0068c9; font-size: 11px; font-weight: 600; transition: background .2s; }
.tp-auth-studio .tp-password-wrap button:hover { background: #dceef7; }
.tp-auth-studio .tp-field-error { font-size: 12px; }

.tp-strength { display: grid; gap: 6px; margin-top: 9px; }
.tp-strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.tp-strength-bars i { height: 4px; border-radius: 4px; background: #e3edf4; transition: background .3s; }
.tp-strength small { color: #587086; font-size: 11px; line-height: 1.5; }
.tp-strength[data-level="1"] .tp-strength-bars i:nth-child(-n+1) { background: #e5546f; }
.tp-strength[data-level="2"] .tp-strength-bars i:nth-child(-n+2) { background: #f0a43a; }
.tp-strength[data-level="3"] .tp-strength-bars i:nth-child(-n+3) { background: #08a9e0; }
.tp-strength[data-level="4"] .tp-strength-bars i { background: #24b47e; }
.tp-match-hint { display: block; margin-top: 6px; font-size: 11px; }
.tp-match-hint:empty { display: none; }
.tp-match-hint[data-state=match] { color: #1f9b6c; }
.tp-match-hint[data-state=mismatch] { color: #c2456a; }

.tp-auth-studio .tp-auth-options { margin: 6px 0 22px; font-size: 12px; }
.tp-auth-studio .tp-auth-options input { width: 15px; height: 15px; }
.tp-auth-studio .tp-auth-terms { font-size: 11px; }
.tp-auth-studio .tp-auth-consent { margin: 4px 0 20px; }
.tp-auth-studio .tp-auth-consent label { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #294960; font-size: 12px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.tp-auth-studio .tp-auth-consent input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #0068c9; cursor: pointer; }
.tp-auth-studio .tp-auth-consent input[aria-invalid=true] { outline: 2px solid #d0496f; outline-offset: 2px; }
.tp-auth-studio .tp-auth-consent a { color: #0068c9; text-decoration: underline; text-underline-offset: 2px; }
.tp-auth-studio .tp-auth-submit {
    position: relative; overflow: hidden;
    height: 52px; border-radius: 12px; font-size: 14px;
    box-shadow: 0 14px 30px -14px rgba(0, 104, 201, .55);
}
.tp-auth-studio .tp-auth-submit::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    transform: translateX(-100%); transition: transform .7s ease;
}
.tp-auth-studio .tp-auth-submit:hover::after { transform: translateX(100%); }
.tp-auth-studio .tp-auth-submit i { transition: transform .25s; }
.tp-auth-studio .tp-auth-submit:hover i { transform: translateX(4px); }
.tp-auth-studio .tp-auth-switch { font-size: 12px; }
.tp-auth-studio .tp-auth-security { margin-top: 24px; font-size: 11px !important; }

@keyframes tp-auth-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes tp-auth-angle { to { --tp-angle: 360deg; } }

@media (max-width: 900px) {
    .tp-auth-studio .tp-auth-form { padding: 34px 32px; }
}
@media (max-width: 640px) {
    .tp-auth-main.tp-auth-studio { padding: 22px 0 44px; }
    .tp-auth-studio .tp-auth-layout { border-radius: 20px; }
    .tp-auth-studio .tp-auth-form { padding: 26px 20px; }
    .tp-auth-switcher { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-auth-glow, .tp-auth-studio .tp-auth-layout::before { animation: none !important; }
    .tp-auth-studio .tp-auth-submit::after { display: none; }
}
