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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #333;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 10px;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}

main {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 14px;
}

.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-container, .upload-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-box, .upload-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.login-box h2, .upload-box h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input[type="password"]:focus,
.form-group input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.info-text {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.help-text {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.info-box {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #b3d9ff;
}

.info-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-box ul {
    list-style-position: inside;
    color: #333;
    line-height: 1.8;
}

.info-box li {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 18px;
    }

    main {
        padding: 20px;
    }

    .login-box, .upload-box {
        padding: 20px;
    }
}
