:root {
    --bg: #fafaf9;
    --surface: #ffffff;
    --surface-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-soft: #f0fdfa;
    --text: #1c1917;
    --text-muted: #78716c;
    --border: #e7e5e4;
    --error: #dc2626;
    --notice-bg: #fefce8;
    --notice-border: #fde68a;
    --notice-text: #854d0e;
}

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

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

.container {
    background: var(--surface);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: var(--surface-shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 420px;
}

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

.logo h1 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg);
    color: var(--text);
}

.error {
    color: var(--error);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.hidden {
    display: none !important;
}

.upload-title {
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.upload-notice {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: none;
}

.upload-notice-header {
    display: flex;
    align-items: center;
    color: var(--notice-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.upload-notice-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.upload-notice-text {
    margin: 0.4rem 0 0 0;
    font-size: 0.825rem;
    color: var(--notice-text);
    line-height: 1.45;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dropzone {
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    background: var(--surface);
}

.dropzone:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dropzone.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dropzone-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.dropzone-title {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dropzone-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.file-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.file-chip-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.file-chip-info {
    flex: 1;
    min-width: 0;
}

.file-chip-name {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-chip-size {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.file-chip-remove {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.file-chip-remove:hover:not(:disabled) {
    color: var(--text);
    background: var(--border);
}

.file-chip-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.progress {
    margin-top: 1rem;
}

.progress-track {
    background: var(--accent-soft);
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
    border-radius: 8px;
}

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

.logout-btn {
    margin-top: 1rem;
}

.upload-actions {
    margin-top: 1rem;
}
