:root {
    --tk-auth-bg: #05070b;
    --tk-auth-panel: #0a0e15;
    --tk-auth-panel-2: #0d121b;
    --tk-auth-border: rgba(255, 255, 255, 0.08);
    --tk-auth-border-focus: rgba(0, 229, 255, 0.55);
    --tk-auth-text: #f4f7fb;
    --tk-auth-muted: #8d98a8;
    --tk-auth-primary: #00e5ff;
    --tk-auth-primary-dark: #00a8bd;
    --tk-auth-danger: #ff4d67;
    --tk-auth-success: #20d890;
}

.tk-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 229, 255, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(112, 70, 255, 0.08),
            transparent 34%
        ),
        var(--tk-auth-bg);
    color: var(--tk-auth-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.tk-auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20%,
        black 80%,
        transparent
    );
    pointer-events: none;
}

.tk-auth-shell {
    width: 100%;
    max-width: 1080px;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1fr 460px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--tk-auth-border);
    background: rgba(8, 11, 17, 0.88);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(0, 229, 255, 0.04);
    backdrop-filter: blur(20px);
    border-radius: 22px;
    overflow: hidden;
}

.tk-auth-brand-panel {
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(
            135deg,
            rgba(0, 229, 255, 0.055),
            transparent 45%
        ),
        linear-gradient(
            315deg,
            rgba(112, 70, 255, 0.05),
            transparent 45%
        );
    border-right: 1px solid var(--tk-auth-border);
}

.tk-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tk-auth-brand-mark {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--tk-auth-primary);
    border-radius: 12px;
}

.tk-auth-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
}

.tk-auth-brand-name span {
    color: var(--tk-auth-primary);
}

.tk-auth-hero {
    max-width: 500px;
}

.tk-auth-kicker {
    color: var(--tk-auth-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.tk-auth-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;
    letter-spacing: -2px;
    font-weight: 800;
}

.tk-auth-hero h1 span {
    color: var(--tk-auth-primary);
}

.tk-auth-hero p {
    margin: 24px 0 0;
    color: var(--tk-auth-muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 460px;
}

.tk-auth-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.tk-auth-feature {
    border: 1px solid var(--tk-auth-border);
    background: rgba(255, 255, 255, 0.025);
    padding: 16px;
    border-radius: 12px;
}

.tk-auth-feature strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.tk-auth-feature span {
    color: var(--tk-auth-muted);
    font-size: 11px;
}

.tk-auth-footer {
    color: #687382;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.tk-auth-form-panel {
    padding: 56px 48px;
    display: flex;
    align-items: center;
}

.tk-auth-form-wrap {
    width: 100%;
}

.tk-auth-form-header {
    margin-bottom: 30px;
}

.tk-auth-form-header h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.7px;
}

.tk-auth-form-header p {
    margin: 9px 0 0;
    color: var(--tk-auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.tk-auth-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.6;
}

.tk-auth-alert-error {
    border: 1px solid rgba(255, 77, 103, 0.25);
    background: rgba(255, 77, 103, 0.07);
    color: #ff9aaa;
}

.tk-auth-alert-success {
    border: 1px solid rgba(32, 216, 144, 0.25);
    background: rgba(32, 216, 144, 0.07);
    color: #78edbd;
}

.tk-auth-alert strong {
    display: block;
    color: inherit;
    margin-bottom: 6px;
}

.tk-auth-alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.tk-auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.tk-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tk-auth-field label {
    color: #c7cfda;
    font-size: 12px;
    font-weight: 650;
}

.tk-auth-field input {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    border: 1px solid var(--tk-auth-border);
    border-radius: 10px;
    outline: none;
    background: var(--tk-auth-panel-2);
    color: var(--tk-auth-text);
    padding: 0 15px;
    font-size: 13px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.tk-auth-field input::placeholder {
    color: #566171;
}

.tk-auth-field input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.tk-auth-field input:focus {
    border-color: var(--tk-auth-border-focus);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
    background: #0e141d;
}

.tk-auth-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--tk-auth-primary);
    color: #031015;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.4px;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
    margin-top: 4px;
}

.tk-auth-submit:hover {
    background: #27ebff;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.16);
    transform: translateY(-1px);
}

.tk-auth-submit:active {
    transform: translateY(0);
}

.tk-auth-switch {
    margin: 24px 0 0;
    text-align: center;
    color: var(--tk-auth-muted);
    font-size: 12px;
}

.tk-auth-switch a {
    color: var(--tk-auth-primary);
    text-decoration: none;
    font-weight: 700;
}

.tk-auth-switch a:hover {
    text-decoration: underline;
}

.tk-auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: #5f6b7a;
    font-size: 10px;
    letter-spacing: 0.3px;
}

.tk-auth-security-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tk-auth-success);
    box-shadow: 0 0 10px rgba(32, 216, 144, 0.5);
}

@media (max-width: 900px) {
    .tk-auth-shell {
        max-width: 540px;
        grid-template-columns: 1fr;
    }

    .tk-auth-brand-panel {
        padding: 38px;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--tk-auth-border);
    }

    .tk-auth-hero h1 {
        font-size: 42px;
    }

    .tk-auth-hero p {
        margin-top: 16px;
    }

    .tk-auth-features {
        margin-top: 22px;
    }

    .tk-auth-footer {
        margin-top: 28px;
    }

    .tk-auth-form-panel {
        padding: 42px 38px;
    }
}

@media (max-width: 520px) {
    .tk-auth-page {
        padding: 14px;
    }

    .tk-auth-shell {
        border-radius: 16px;
    }

    .tk-auth-brand-panel {
        padding: 28px 24px;
    }

    .tk-auth-form-panel {
        padding: 32px 24px;
    }

    .tk-auth-features {
        grid-template-columns: 1fr;
    }

    .tk-auth-hero h1 {
        font-size: 36px;
    }
}

.tk-login-support{width:min(100%,560px);margin:18px auto 0;padding:14px 16px;border:1px solid rgba(100,150,255,.22);border-radius:14px;background:rgba(255,255,255,.025);box-shadow:0 10px 30px rgba(0,0,0,.12)}
.tk-login-support-title{font-size:13px;font-weight:700;margin:3px 0 10px}.tk-login-support-actions{display:flex;flex-wrap:wrap;gap:7px}.tk-support-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border:1px solid rgba(255,255,255,.1);border-radius:9px;color:inherit;text-decoration:none;font-size:12px;line-height:1.2;background:rgba(255,255,255,.025);transition:.18s}.tk-support-btn:hover{transform:translateY(-1px);border-color:rgba(100,150,255,.45)}.tk-support-discord{flex:1 1 100%}
@media(max-width:600px){.tk-login-support{margin-top:14px;padding:12px}.tk-support-btn{flex:1 1 100%;font-size:11.5px}}

.tk-auth-login-shell{max-width:1280px;grid-template-columns:minmax(0,1fr) 410px 250px;min-height:650px}
.tk-auth-login-shell .tk-auth-form-panel{padding:54px 42px;border-right:1px solid var(--tk-auth-border)}
.tk-auth-support-panel{display:flex;align-items:center;padding:28px 22px;background:linear-gradient(180deg,rgba(0,229,255,.035),rgba(112,70,255,.035));}
.tk-auth-support-inner{width:100%;padding:18px;border:1px solid rgba(100,150,255,.18);border-radius:16px;background:rgba(255,255,255,.018);box-shadow:0 18px 45px rgba(0,0,0,.2)}
.tk-auth-support-inner h3{margin:4px 0 8px;font-size:20px}.tk-auth-support-inner p{margin:0 0 18px;color:var(--tk-auth-muted);font-size:12px;line-height:1.6}
.tk-auth-support-panel .tk-login-support-actions{display:grid;gap:9px}.tk-auth-support-panel .tk-support-btn{width:100%;display:grid;grid-template-columns:28px 1fr;align-items:center;justify-content:start;text-align:left;min-height:52px;padding:9px 10px}.tk-auth-support-panel .tk-support-btn>span:first-child{display:grid;place-items:center;font-size:16px}.tk-auth-support-panel .tk-support-btn strong{display:block;font-size:11px;letter-spacing:.04em}.tk-auth-support-panel .tk-support-btn small{display:block;margin-top:2px;color:var(--tk-auth-muted);font-size:9px}.tk-auth-support-note{display:flex;align-items:center;gap:7px;margin-top:16px;color:#667487;font:700 9px var(--tk-mono);letter-spacing:.06em}.tk-auth-support-note span{width:6px;height:6px;border-radius:50%;background:var(--tk-auth-success);box-shadow:0 0 10px rgba(32,216,144,.45)}
@media(max-width:1120px){.tk-auth-login-shell{grid-template-columns:minmax(0,1fr) 410px;max-width:980px}.tk-auth-support-panel{grid-column:1/-1;border-top:1px solid var(--tk-auth-border);padding:20px 28px}.tk-auth-support-inner{display:grid;grid-template-columns:1fr 2fr auto;align-items:center;gap:18px}.tk-auth-support-inner p{margin:0}.tk-auth-support-panel .tk-login-support-actions{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.tk-auth-login-shell{grid-template-columns:1fr;max-width:540px}.tk-auth-login-shell .tk-auth-form-panel{border-right:0}.tk-auth-support-panel{grid-column:auto;padding:24px 28px}.tk-auth-support-inner{display:block}.tk-auth-support-inner p{margin-bottom:16px}.tk-auth-support-panel .tk-login-support-actions{grid-template-columns:1fr}}
@media(max-width:520px){.tk-auth-support-panel{padding:20px 24px}.tk-auth-support-inner{padding:14px}.tk-auth-support-panel .tk-support-btn{min-height:48px}}

.tk-auth-reset-shell{max-width:520px;min-height:0}.tk-auth-reset-shell .tk-auth-card{width:100%;box-sizing:border-box}.tk-auth-reset-shell .tk-auth-kicker{margin-bottom:10px}.tk-auth-reset-shell h1{margin:0 0 10px}.tk-auth-reset-shell p{color:var(--tk-auth-muted);line-height:1.7}.tk-auth-reset-shell .tk-form-group{margin:16px 0}.tk-auth-reset-shell .tk-btn{width:100%}
