body:has(.ct-login) {
    --ct-blue: #2563eb;
    --ct-cyan: #00d9ff;
    background: #f3f6fb;
}

body:has(.ct-login) .fi-simple-layout {
    min-height: 100vh;
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .08), transparent 28%), #f3f6fb;
}

body:has(.ct-login) .fi-simple-main-ctn {
    width: 50%;
    margin-left: auto;
    padding: 48px;
}

body:has(.ct-login) .fi-simple-main {
    width: 100%;
    max-width: 470px;
    padding: 42px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 28px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 30px 70px rgba(15, 23, 42, .10), 0 2px 8px rgba(15, 23, 42, .04);
}

body:has(.ct-login) .fi-simple-header { display: none; }

.ct-login__visual {
    position: fixed;
    z-index: 1;
    inset: 0 50% 0 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(48px, 6vw, 110px);
    color: #fff;
    background:
        radial-gradient(circle at 18% 15%, rgba(0, 217, 255, .20), transparent 28%),
        radial-gradient(circle at 90% 85%, rgba(37, 99, 235, .35), transparent 34%),
        linear-gradient(145deg, #020817 0%, #071a33 52%, #020817 100%);
}

.ct-login__visual::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -280px;
    top: -180px;
    border: 1px solid rgba(0, 217, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(0, 217, 255, .025), 0 0 0 140px rgba(0, 217, 255, .018);
}

.ct-login__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .3;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.ct-login__visual-content { position: relative; z-index: 2; max-width: 590px; }

.ct-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 80px; }

.ct-brand__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
    box-shadow: 0 16px 40px rgba(0, 217, 255, .12);
    backdrop-filter: blur(10px);
}

.ct-brand__mark svg { width: 28px; height: 28px; }
.ct-brand__name { font-size: 23px; font-weight: 850; line-height: 1; letter-spacing: -.045em; }
.ct-brand__name span { display: block; margin-top: 7px; color: var(--ct-cyan); font-size: 11px; font-weight: 800; letter-spacing: .48em; }

.ct-login__kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: #8defff; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ct-login__kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--ct-cyan); }
.ct-login__visual h2 { margin: 0; color: #fff; font-size: clamp(38px, 4vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.055em; }
.ct-login__visual h2 em { color: var(--ct-cyan); font-style: normal; }
.ct-login__visual-content > p { max-width: 500px; margin: 28px 0 0; color: #aebed3; font-size: 17px; line-height: 1.7; }
.ct-login__features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.ct-login__features span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; color: #d9e7f7; background: rgba(255,255,255,.045); font-size: 12px; font-weight: 650; }
.ct-login__visual footer { position: absolute; z-index: 2; right: clamp(48px, 6vw, 110px); bottom: 38px; left: clamp(48px, 6vw, 110px); display: flex; justify-content: space-between; color: #647a96; font-size: 11px; }

.ct-mobile-brand { display: none; }
.ct-login__header { margin-bottom: 32px; }
.ct-login__header > div { margin-bottom: 10px; color: var(--ct-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ct-login__header h1 { margin: 0; color: #0f172a; font-size: 31px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.ct-login__header p { margin: 10px 0 0; color: #64748b; font-size: 14px; line-height: 1.6; }
.ct-login__secure { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: #94a3b8; font-size: 11px; }
.ct-login__secure svg { width: 14px; height: 14px; color: #16a34a; }

body:has(.ct-login) .fi-input-wrp { min-height: 48px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(148, 163, 184, .32); transition: box-shadow .2s ease; }
body:has(.ct-login) .fi-input-wrp:focus-within { box-shadow: 0 0 0 2px var(--ct-blue), 0 8px 24px rgba(37, 99, 235, .10); }
body:has(.ct-login) .fi-btn { min-height: 48px; border-radius: 13px !important; background: linear-gradient(135deg, #2563eb, #0759d2); box-shadow: 0 12px 28px rgba(37, 99, 235, .22); transition: transform .2s ease, box-shadow .2s ease; }
body:has(.ct-login) .fi-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(37, 99, 235, .28); }

@media (max-width: 900px) {
    .ct-login__visual { display: none; }
    body:has(.ct-login) .fi-simple-main-ctn { width: 100%; margin-left: 0; padding: 24px; }
    body:has(.ct-login) .fi-simple-main { max-width: 470px; padding: 34px 28px; border-radius: 24px; }
    .ct-mobile-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; color: #0f172a; font-size: 17px; font-weight: 850; letter-spacing: -.035em; }
    .ct-mobile-brand span { color: var(--ct-blue); }
    .ct-mobile-brand i { width: 11px; height: 11px; margin-right: 3px; border-radius: 4px; background: linear-gradient(135deg, #2563eb, #00d9ff); box-shadow: 0 0 0 5px rgba(37, 99, 235, .08); }
}

@media (max-width: 480px) {
    body:has(.ct-login) .fi-simple-main-ctn { align-items: stretch; padding: 0; }
    body:has(.ct-login) .fi-simple-main { min-height: 100vh; max-width: none; padding: 34px 24px; border: 0; border-radius: 0; box-shadow: none; }
}
