: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;
    }
}
