:root {
    color-scheme: light;
    font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
    color: #202938;
    background: #f3f6f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #f3f6f8;
}

button,
input {
    font: inherit;
}

.page-shell {
    width: min(100% - 32px, 920px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 48px 0;
}

.login-panel,
.directory-panel {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d9e0e5;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(27, 42, 56, 0.08);
}

.login-panel {
    max-width: 420px;
    padding: 36px;
}

.directory-panel {
    overflow: hidden;
}

.directory-header {
    padding: 28px 32px 22px;
    border-bottom: 1px solid #e3e8ec;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.eyebrow {
    margin: 0 0 7px;
    color: #237b69;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: 26px;
    line-height: 1.25;
}

.intro {
    margin-bottom: 0;
    color: #687583;
    font-size: 14px;
    line-height: 1.6;
}

.login-form {
    margin-top: 28px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 44px;
    border: 1px solid #b9c5cd;
    border-radius: 5px;
    padding: 0 12px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
    border-color: #237b69;
    box-shadow: 0 0 0 3px rgba(35, 123, 105, 0.16);
}

button,
.download-link {
    min-height: 40px;
    border: 0;
    border-radius: 5px;
    padding: 0 16px;
    background: #237b69;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-form button {
    width: 100%;
    margin-top: 20px;
}

button:hover,
.download-link:hover {
    background: #176254;
}

.text-button {
    min-height: 34px;
    padding: 0 10px;
    color: #52616e;
    background: transparent;
    border: 1px solid #cbd5db;
}

.text-button:hover {
    color: #202938;
    background: #edf2f4;
}

.form-error {
    margin: 10px 0 0;
    color: #b42318;
    font-size: 13px;
}

.file-list {
    padding: 8px 0;
}

.file-row {
    min-height: 84px;
    padding: 14px 32px;
    border-bottom: 1px solid #edf0f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.file-row:last-child {
    border-bottom: 0;
}

.file-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-mark {
    flex: 0 0 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #b9d7d0;
    border-radius: 5px;
    color: #176254;
    background: #eaf5f1;
    font-size: 10px;
    font-weight: 800;
}

.file-row h2 {
    overflow-wrap: anywhere;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.35;
}

.file-row p {
    margin-bottom: 0;
    color: #74808b;
    font-size: 13px;
}

.download-link {
    flex: 0 0 auto;
}

.empty-state {
    padding: 56px 32px;
    color: #687583;
    text-align: center;
}

.empty-state h2 {
    color: #202938;
    font-size: 18px;
}

code {
    padding: 2px 5px;
    background: #edf2f4;
    border-radius: 3px;
    color: #294552;
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 20px, 920px);
        padding: 20px 0;
    }

    .login-panel {
        padding: 28px 22px;
    }

    .directory-header,
    .file-row {
        padding-left: 20px;
        padding-right: 20px;
    }

    .file-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .download-link {
        width: 100%;
    }
}
