* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --background-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --error-color: #ef4444;
    --success-color: #22c55e;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box, .upload-container {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.secondary-button {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: auto;
    padding: 0.5rem 1rem;
}

.secondary-button:hover {
    background: #f8f9ff;
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.message.error {
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fee2e2;
}

.message.success {
    background: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #dcfce7;
}

/* Upload page specific styles */
.upload-container {
    max-width: 600px;
    margin: 40px auto;
}

.file-upload {
    border: 2px dashed var(--border-color);
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

.file-upload p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.file-name {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.mode-options {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mode-option {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.mode-option h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.mode-option:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
}

.mode-option.selected {
    border-color: var(--primary-color);
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pos-input {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pos-input.visible {
    display: block;
}

.template-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.template-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.template-description strong {
    color: var(--text-color);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 