:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --error: #ef4444;
    --error-bg: #451a1a;
    --success: #22c55e;
    --success-bg: #14532d;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.logo p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary);
}

.file-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.file-drop:hover,
.file-drop.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.file-drop-text strong {
    color: var(--primary);
}

.file-info {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.file-selected {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--text);
    display: none;
}

.btn {
    width: 100%;
    padding: 0.625rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover { background: var(--primary-hover); }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-bar {
    display: none;
    margin-top: 1rem;
}

.progress-track {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

.flash.error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}

.flash.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.thankyou {
    text-align: center;
    padding: 1rem 0;
}

.thankyou .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thankyou h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.thankyou p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.thankyou .title-name {
    color: var(--primary);
    font-weight: 500;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.link:hover { text-decoration: underline; }

.footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
