.klk-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 18%, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(34, 197, 94, 0.08), transparent 26%),
        var(--klk-bg);
    display: flex;
    flex-direction: column;
}

.klk-auth-page .klk-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

.klk-auth-container {
    width: 1180px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.klk-auth-header {
    flex: 0 0 auto;
    height: 58px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    backdrop-filter: blur(10px);
}

.klk-auth-header-inner {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.klk-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--klk-text-main);
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.klk-auth-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: var(--klk-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
}

.klk-auth-header-link {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}

.klk-auth-header-link:hover {
    border-color: #cbd5e1;
    color: var(--klk-primary);
}

.klk-auth-main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.klk-auth-main .klk-auth-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.klk-auth-main .klk-auth-layout {
    width: 860px;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: stretch;
}

.klk-auth-main .klk-auth-intro,
.klk-auth-main .klk-auth-card {
    background: var(--klk-white);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.klk-auth-main .klk-auth-intro {
    padding: 34px 34px 30px;
    overflow: hidden;
    position: relative;
}

.klk-auth-main .klk-auth-intro::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -62px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 197, 94, 0.12));
}

.klk-auth-main .klk-auth-kicker {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 3px;
    background: #eff6ff;
    color: var(--klk-primary);
    font-size: 13px;
    font-weight: 400;
}

.klk-auth-main .klk-auth-title {
    margin: 18px 0 0;
    color: #1d2533;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 800;
}

.klk-auth-main .klk-auth-desc {
    max-width: 360px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.klk-auth-main .klk-auth-points {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.klk-auth-main .klk-auth-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.klk-auth-main .klk-auth-point-mark {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: #f0fdf4;
    color: var(--klk-success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 12px;
}

.klk-auth-main .klk-auth-card {
    padding: 30px;
}

.klk-auth-main .klk-auth-card-head {
    margin-bottom: 24px;
}

.klk-auth-main .klk-auth-card-title {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
}

.klk-auth-main .klk-auth-card-desc {
    margin: 7px 0 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
}

.klk-auth-main .klk-auth-form {
    display: grid;
    gap: 16px;
}

.klk-auth-main .klk-auth-tabs {
    height: 38px;
    margin: -8px 0 20px;
    padding: 3px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.klk-auth-main .klk-auth-tab {
    height: 30px;
    border-radius: 4px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.klk-auth-main .klk-auth-tab:hover {
    color: var(--klk-primary);
}

.klk-auth-main .klk-auth-tab.is-active {
    background: #fff;
    color: var(--klk-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.klk-auth-main .klk-auth-field {
    display: grid;
    gap: 7px;
}

.klk-auth-main .klk-auth-label {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.klk-auth-main .klk-auth-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    transition: all 0.18s ease;
}

.klk-auth-main .klk-auth-input::placeholder {
    color: #b6bdc8;
}

.klk-auth-main .klk-auth-input:hover {
    border-color: #cbd5e1;
}

.klk-auth-main .klk-auth-input:focus {
    border-color: var(--klk-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.klk-auth-main .klk-auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
}

.klk-auth-main .klk-auth-code-btn {
    height: 42px;
    padding: 0 12px;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    background: #fff;
    color: var(--klk-primary);
    font-size: 14px;
    white-space: nowrap;
}

.klk-auth-main .klk-auth-code-btn:hover {
    border-color: var(--klk-primary);
    background: #eff6ff;
}

.klk-auth-main .klk-auth-code-btn[disabled] {
    border-color: #e5e7eb;
    color: #9ca3af;
    background: #f8fafc;
}

.klk-auth-main .klk-auth-submit {
    height: 42px;
    margin-top: 2px;
    font-size: 15px;
}

.klk-auth-main .klk-auth-tip {
    min-height: 20px;
    margin: -2px 0 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.6;
}

.klk-auth-main .klk-auth-tip.is-error {
    color: var(--klk-danger);
}

.klk-auth-main .klk-auth-tip.is-success {
    color: var(--klk-success);
}

.klk-auth-main .klk-auth-agreement {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.klk-auth-main .klk-auth-agreement a {
    color: var(--klk-primary);
}

.klk-auth-main .klk-auth-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.klk-auth-main .klk-auth-bottom a {
    color: var(--klk-primary);
}

.klk-auth-footer {
    flex: 0 0 auto;
    padding: 14px 0 18px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}

.klk-auth-footer a:hover {
    color: var(--klk-primary);
}

@media (max-width: 900px) {
    .klk-auth-main .klk-auth-layout {
        width: 430px;
        grid-template-columns: 1fr;
    }

    .klk-auth-main .klk-auth-intro {
        display: none;
    }
}

@media (max-width: 640px) {
    .klk-auth-container {
        max-width: calc(100% - 20px);
    }

    .klk-auth-main {
        padding: 22px 0;
        align-items: flex-start;
    }

    .klk-auth-main .klk-auth-card {
        padding: 24px 18px;
    }

    .klk-auth-main .klk-auth-code-row {
        grid-template-columns: 1fr;
    }

    .klk-auth-main .klk-auth-code-btn {
        width: 100%;
    }
}
