:root {
    --bg: #f4f5f7;
    --card-bg: #ffffff;
    --text: #1f2430;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --error: #dc2626;
    --success: #16a34a;
    --border: #e2e5ea;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 24px 16px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
}

.card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.05);
    padding: 28px 24px;
    width: 100%;
    max-width: 480px;
}

.login-card {
    margin-top: 10vh;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

h1 {
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.subtitle {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.subtitle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 16px 0 6px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 1rem;
    background: #fafafa;
}

input[type="file"] {
    width: 100%;
    padding: 10px 0;
    font-size: 0.95rem;
}

.hint {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 6px 0 0;
}

button[type="submit"] {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button[type="submit"]:active {
    background: var(--accent-dark);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: default;
}

.error {
    color: var(--error);
    font-size: 0.9rem;
    background: #fef2f2;
    padding: 10px 12px;
    border-radius: 8px;
}

.status {
    margin-top: 16px;
    font-size: 0.92rem;
    white-space: pre-line;
}

.status.success { color: var(--success); }
.status.error { color: var(--error); }

.logout {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.filelist {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.progress-wrap {
    margin-top: 18px;
    height: 10px;
    border-radius: 6px;
    background: var(--border);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.15s ease;
}
