/* ── Custom Styles ── */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }

.auth-page {
    min-height: 100vh;
    margin: 0;
    color: #384267;
    background:
        radial-gradient(circle at 72% 18%, rgba(130, 98, 255, .10), transparent 30%),
        linear-gradient(100deg, #eef2ff 0%, #f9f0f6 48%, #ffffff 48%, #ffffff 100%);
    letter-spacing: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 48%) minmax(360px, 52%);
}

.auth-intro {
    display: flex;
    align-items: center;
    padding: 48px clamp(32px, 6vw, 78px);
}

.auth-intro-inner {
    max-width: 520px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(102, 126, 190, .12);
    color: #52649a;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.auth-intro h1 {
    margin: 0 0 32px;
    color: #3d4772;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.28;
    font-weight: 900;
}

.auth-feature-group {
    margin-top: 28px;
}

.auth-feature-group h2 {
    margin: 0 0 14px;
    color: #414b76;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 900;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3f4a74;
    font-size: 18px;
    font-weight: 850;
    margin: 12px 0 6px;
}

.auth-feature i {
    color: #6283bd;
    font-size: 18px;
}

.auth-feature-group ul {
    margin: 0 0 0 34px;
    padding: 0;
    color: #4f5a84;
    font-size: 15px;
    line-height: 1.8;
}

.auth-panel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-panel {
    width: min(430px, 100%);
    padding: 18px 14px 10px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 16px 36px rgba(139, 92, 246, .25);
}

.auth-brand-name {
    color: #3e4772;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 900;
    word-break: break-word;
}

.auth-brand-sub {
    color: #7a86aa;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 52px;
    margin-bottom: 28px;
    border: 1px solid #d9e4f3;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.auth-tabs button,
.auth-tabs span {
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    color: #354166;
    background: transparent;
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.auth-tabs .active {
    color: #fff;
    background: linear-gradient(135deg, #6b5cf6, #9b61f2);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(107, 92, 246, .25);
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #b4233b;
    background: #fff1f3;
    border: 1px solid #ffd1d8;
    font-size: 14px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 16px;
    border-radius: 13px;
    border: 1px solid #d9e4f3;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}

.auth-field:focus-within {
    border-color: #8b7cf6;
    box-shadow: 0 0 0 4px rgba(139, 124, 246, .12);
}

.auth-field i {
    color: #617099;
    font-size: 18px;
}

.auth-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #2f395f;
    background: transparent;
    font-size: 16px;
    font-weight: 650;
}

.auth-field input::placeholder {
    color: #8a97bb;
}

.auth-submit {
    height: 60px;
    margin-top: 6px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #b85df1, #ec4899);
    box-shadow: 0 22px 42px rgba(217, 70, 180, .25);
    font-size: 20px;
    font-weight: 900;
    transition: transform .18s, box-shadow .18s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 26px 48px rgba(217, 70, 180, .30);
}

.auth-submit:focus-visible,
.auth-tabs button:focus-visible {
    outline: 3px solid rgba(139, 124, 246, .35);
    outline-offset: 3px;
}

.auth-footnote {
    margin-top: 22px;
    text-align: center;
    color: #56628d;
    font-size: 15px;
    font-weight: 700;
}

.auth-footnote button {
    border: 0;
    padding: 0;
    color: #4f75bd;
    background: transparent;
    text-decoration: none;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 900px) {
    .auth-page {
        background: linear-gradient(180deg, #eef2ff 0%, #ffffff 56%);
    }
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-intro {
        padding: 34px 22px 18px;
        align-items: flex-start;
    }
    .auth-intro-inner {
        max-width: none;
    }
    .auth-intro h1 {
        margin-bottom: 20px;
        font-size: 30px;
    }
    .auth-feature-group {
        margin-top: 18px;
    }
    .auth-feature-group h2 {
        font-size: 18px;
    }
    .auth-feature-group ul {
        font-size: 14px;
    }
    .auth-panel-wrap {
        padding: 18px 18px 40px;
        align-items: flex-start;
    }
    .auth-panel {
        padding: 8px 0 0;
    }
}

@media (max-width: 520px) {
    .auth-intro {
        padding: 28px 18px 12px;
    }
    .auth-kicker {
        font-size: 13px;
    }
    .auth-intro h1 {
        font-size: 26px;
    }
    .auth-feature {
        font-size: 16px;
    }
    .auth-feature-group ul {
        margin-left: 28px;
    }
    .auth-brand {
        justify-content: flex-start;
    }
    .auth-brand-name {
        font-size: 22px;
    }
    .auth-tabs button,
    .auth-tabs span {
        font-size: 15px;
    }
    .auth-submit {
        height: 56px;
        font-size: 18px;
    }
}

.project-card { transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.12) !important; }

.image-item { transition: background-color 0.1s; }
.image-item:hover { background-color: rgba(13,110,253,0.05); }

.editable-cell { cursor: pointer; transition: background-color 0.15s; border-radius: 4px; }
.editable-cell:hover { background-color: rgba(255,193,7,0.15); }

.editable-cell.editing { padding: 0; }
.editable-cell.editing input {
    width: 100%; border: 2px solid #0d6efd; border-radius: 4px;
    padding: 4px 8px; font-size: inherit; outline: none;
}

#statusBar { transition: all 0.3s; }
#statusBar.success { background-color: #d1e7dd !important; border-color: #badbcc !important; color: #0f5132 !important; }
#statusBar.error { background-color: #f8d7da !important; border-color: #f5c2c7 !important; color: #842029 !important; }

#uploadPreview img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

.navbar { box-shadow: 0 2px 4px rgba(0,0,0,0.08); }

.table > :not(caption) > * > * { vertical-align: middle; }

.progress { background-color: #e9ecef; border-radius: 4px; }
