/* Textpixora — cosmic 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, #070a1f 0%, #0a0b25 65%, #0d0a28 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(190, 170, 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: #6b3cff; }
.tp-auth-glow-b { width: 480px; height: 480px; bottom: -200px; left: -140px; background: #1f63ff; animation-delay: -9s; }
.tp-auth-floor {
    position: absolute; left: -25%; right: -25%; bottom: 0; height: 40%;
    background-image: linear-gradient(rgba(150, 125, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 125, 255, .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: 1120px;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    border: 0; border-radius: 28px;
    background: transparent;
    box-shadow: 0 60px 120px -50px rgba(90, 50, 220, .7);
}
.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(61, 123, 255, .9), rgba(163, 92, 255, .9), rgba(255, 92, 207, .9), rgba(61, 214, 255, .9), rgba(61, 123, 255, .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;
}

/* Showcase */
.tp-auth-showcase {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
    min-height: 660px; padding: 40px;
    background: #0b0d24; color: #fff;
}
.tp-auth-slides { position: absolute; inset: 0; }
.tp-auth-slides img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 78% 50%;
    opacity: 0;
    animation: tp-auth-fade 18s ease-in-out infinite both;
}
.tp-auth-slides img:nth-child(1) { animation-delay: -1s; }
.tp-auth-slides img:nth-child(2) { animation-delay: 5s; object-position: 32% 50%; }
.tp-auth-slides img:nth-child(3) { animation-delay: 11s; }
.tp-auth-showcase::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 9, 30, .94) 0%, rgba(7, 9, 30, .45) 40%, rgba(7, 9, 30, .3) 58%, rgba(7, 9, 30, .94) 100%);
}
.tp-auth-showcase-copy, .tp-auth-showcase-foot { position: relative; z-index: 1; }
.tp-auth-kicker {
    display: inline-flex; padding: 6px 13px; margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 30px;
    background: rgba(255, 255, 255, .07); backdrop-filter: blur(10px);
    color: #d9d2ff; font-size: 11px; font-weight: 600; letter-spacing: .06em;
}
body.tp-site .tp-auth-showcase h2 { margin: 0 0 24px; color: #fff; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.tp-auth-showcase h2 em {
    font-style: normal;
    background: linear-gradient(100deg, #6ab0ff, #a88bff 40%, #ff7ad9 75%, #ffb36b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tp-auth-perks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-auth-perks li {
    display: flex; align-items: center; gap: 12px; width: fit-content;
    padding: 9px 14px 9px 9px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12); background: rgba(9, 10, 32, .5); backdrop-filter: blur(12px);
    color: #e7e4ff; font-size: 13px;
}
.tp-auth-perks i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #3d6bff, #a35cff); color: #fff; font-size: 12px; }
body.tp-site .tp-auth-showcase p.tp-auth-quote {
    margin: 0 0 16px; padding: 14px 16px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 10, 32, .55); backdrop-filter: blur(12px);
    color: #fff; font-size: 13px; line-height: 1.6;
}
.tp-auth-quote small { display: block; margin-bottom: 4px; color: #c8b5ff; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tp-auth-tagline { color: #9da1c8; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Form panel */
.tp-auth-studio .tp-auth-form { display: flex; flex-direction: column; justify-content: center; align-self: stretch; padding: 44px 52px; background: #fff; }
.tp-auth-studio .tp-auth-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 26px; color: #8a8ea3; font-size: 12px; }
.tp-auth-studio .tp-auth-back i { font-size: 10px; transition: transform .25s; }
.tp-auth-studio .tp-auth-back:hover { color: #6a45d6; }
.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: #f2f0fa; }
.tp-auth-switcher a { padding: 10px; border-radius: 10px; text-align: center; color: #6f7389; font-size: 13px; font-weight: 600; transition: background .25s, color .25s, box-shadow .25s; }
.tp-auth-switcher a:hover { color: #3b2a85; }
.tp-auth-switcher a[aria-current=page] { background: #fff; color: #5b34d6; box-shadow: 0 4px 14px -6px rgba(60, 40, 160, .35); }
.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: #3f4260; 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: #a29bc9; 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 #e1e0ee; border-radius: 12px;
    background: #fbfbfe; color: #171a3a; 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: #cfcbe6; }
.tp-auth-studio .tp-auth-field input:focus { outline: none; border-color: #8b5cff; background: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 255, .14); }
.tp-auth-studio .tp-auth-field input:focus-visible { outline: 2px solid transparent; }
.tp-input-wrap:focus-within > i { color: #7b4dff; }
.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: #f1edff; color: #6a45d6; font-size: 11px; font-weight: 600; transition: background .2s; }
.tp-auth-studio .tp-password-wrap button:hover { background: #e5dcff; }
.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: #e9e7f3; transition: background .3s; }
.tp-strength small { color: #7d8199; 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: #4f9dff; }
.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-submit {
    position: relative; overflow: hidden;
    height: 52px; border-radius: 12px; font-size: 14px;
    box-shadow: 0 14px 30px -14px rgba(105, 61, 255, .8);
}
.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-fade { 0%, 100% { opacity: 0; transform: scale(1.1); } 5% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1); } }
@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-layout { grid-template-columns: 1fr; max-width: 560px; }
    .tp-auth-showcase { min-height: 0; padding: 28px; gap: 0; }
    .tp-auth-perks, .tp-auth-showcase-foot { display: none; }
    body.tp-site .tp-auth-showcase h2 { margin: 0; font-size: 30px; }
    .tp-auth-kicker { margin-bottom: 14px; }
    .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-showcase { padding: 22px; }
    body.tp-site .tp-auth-showcase h2 { font-size: 25px; }
    .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, .tp-auth-slides img { animation: none !important; }
    .tp-auth-slides img:first-child { opacity: 1; }
    .tp-auth-studio .tp-auth-submit::after { display: none; }
}
