* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
#app { width: 90%; max-width: 600px; }
.screen { width: 100%; padding: 30px; background: linear-gradient(160deg, #fafafa 0%, #f5f5f5 50%, #f0f0f0 100%); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); border-top: 4px solid #667eea; }
h1 { color: #2d3748; margin-bottom: 8px; font-size: 1.6em; }
h2 { color: #4a5568; margin-bottom: 15px; font-size: 1.2em; }
input { width: 100%; padding: 12px 14px; margin: 8px 0; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 16px; transition: border-color 0.2s; outline: none; }
input:focus { border-color: #667eea; }
button { width: 100%; padding: 12px; margin: 8px 0; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; font-weight: 600; transition: transform 0.1s, box-shadow 0.2s; }
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-secondary { background: linear-gradient(135deg, #4a5568, #2d3748); color: white; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
.header button { width: auto; padding: 8px 18px; background: #e53e3e; color: white; border-radius: 6px; font-size: 14px; }
.header button:hover { background: #c53030; }
.upload-area { text-align: center; }
#preview { margin: 15px 0; padding: 12px; background: #f7fafc; border: 1px dashed #cbd5e0; border-radius: 8px; }
.success { color: #276749; font-weight: 600; padding: 12px; background: #c6f6d5; border-radius: 8px; margin: 10px 0; border-left: 4px solid #38a169; }
.warning { color: #975a16; font-weight: 600; padding: 12px; background: #fefcbf; border-radius: 8px; margin: 10px 0; border-left: 4px solid #d69e2e; }
.error { color: #9b2c2c; font-weight: 600; padding: 12px; background: #fed7d7; border-radius: 8px; margin: 10px 0; border-left: 4px solid #e53e3e; }
p { text-align: center; margin: 10px 0; color: #718096; }
a { color: #667eea; text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; color: #764ba2; }
#forgot-message, #reset-message, #register-message { margin-top: 15px; }
#upload-btn { background: linear-gradient(135deg, #38a169, #2f855a); color: white; margin-top: 15px; }
