* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f5f7fa; color: #1f2937; min-height: 100vh; display: flex; flex-direction: column; }

.login-page {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)),
                url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
}

.login-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-box { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: 100%; max-width: 420px; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo h1 { font-size: 28px; font-weight: 600; color: #111827; }
.subtitle { color: #6b7280; margin-bottom: 24px; font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input { padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
.auth-form input:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.15); }
.auth-form button { background: #1a73e8; color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; }
.auth-form button:hover { background: #1557b0; }
.divider { text-align: center; margin: 16px 0; color: #9ca3af; font-size: 14px; }
.switch-form { text-align: center; margin-top: 16px; color: #1a73e8; cursor: pointer; font-size: 14px; }
.message { margin-top: 12px; padding: 10px; border-radius: 6px; text-align: center; display: none; font-size: 14px; }
.message.error { background: #fef2f2; color: #dc2626; display: block; }
.message.success { background: #f0fdf4; color: #16a34a; display: block; }

.header { background: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 20px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-name { color: #6b7280; }
.logout-btn { color: #1a73e8; text-decoration: none; font-weight: 500; }
.main { flex: 1; max-width: 1200px; margin: 24px auto; padding: 0 24px; width: 100%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.btn-primary { background: #1a73e8; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.file-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .2s; }
.file-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.file-icon { font-size: 40px; margin-bottom: 8px; }
.file-name { font-weight: 500; margin-bottom: 4px; word-break: break-all; }
.file-meta { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.file-actions { display: flex; gap: 8px; }
.btn-icon { background: none; border: 1px solid #e5e7eb; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-icon:hover { background: #f3f4f6; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #6b7280; }
.empty-state .hint { font-size: 14px; margin-top: 8px; }
.upload-item { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:12px; margin-bottom:8px; }
.upload-name { font-size:14px; margin-bottom:6px; word-break:break-all; }
.progress-bar { height:8px; background:#e5e7eb; border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; background:#1a73e8; width:0; transition:width .2s; }
.upload-stats { font-size:12px; color:#6b7280; margin-top:4px; }

.site-footer { background: #111827; color: #9ca3af; padding: 24px; margin-top: auto; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-date { font-size: 13px; }