* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; }
.welcome-section { text-align: center; margin-bottom: 3rem; color: white; }
.logo { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.logo-image { height: 3rem; width: auto; object-fit: contain; }
.logo h1 { font-size: 2.5rem; font-weight: 700; color: white; }
.version-info { font-size: .875rem; color: #9ca3af; text-align: center; font-weight: 500; }
.login-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; width: 100%; max-width: 800px; }
.login-card { background: white; border-radius: 16px; padding: 2.5rem; text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.1); transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; height: 100%; }
.login-card:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,.15); }
.card-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: white; }
.location-staff .card-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.admin .card-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.login-card h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; color: #333; }
.login-card p { color: #666; margin-bottom: 2rem; font-size: .95rem; flex-grow: 1; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .875rem 1.75rem; border: none;
  border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all .3s ease; font-family: inherit; color: white; }
.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.btn-primary:hover { background: linear-gradient(135deg, #5a6fd8, #6a4190); transform: translateY(-2px); }
.btn-secondary { background: linear-gradient(135deg, #f093fb, #f5576c); }
.btn-secondary:hover { background: linear-gradient(135deg, #e085e7, #e54b5f); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.modal { display: none; position: fixed; z-index: 1000; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(5px); }
.modal.open { display: block; }
.modal-content { background: white; margin: 5% auto; border-radius: 16px; width: 90%; max-width: 500px;
  box-shadow: 0 25px 50px rgba(0,0,0,.25); animation: modalSlideIn .3s ease; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.25rem; font-weight: 600; color: #333; display: flex; align-items: center; gap: .5rem; }
.close { color: #aaa; font-size: 2rem; font-weight: bold; cursor: pointer; line-height: 1; background: none; border: none; }
.close:hover { color: #333; }
.modal-body { padding: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 500; color: #333; }
.form-group input { width: 100%; padding: .875rem 1rem; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.form-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
@media (max-width: 768px) { .container { padding: 1rem; } .logo h1 { font-size: 2rem; } .logo-image { height: 2.5rem; } }
@media (max-width: 480px) { .logo { flex-direction: column; gap: .5rem; } .logo h1 { font-size: 1.75rem; } }
.login-card.single { max-width: 420px; width: 100%; text-align: left; height: auto; }
.login-card.single:hover { transform: none; }
.login-card.single h2 { margin-bottom: 1rem; }
.login-card.single p { margin-bottom: 1rem; flex-grow: 0; }
.form-error { background: #fdecea; color: #8a1f17; border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.form-group small { display: block; margin-top: .35rem; color: #6b7280; font-size: .8rem; }
.login-note { margin: 1.25rem 0 0; font-size: .85rem; color: #6b7280; text-align: center; }
.login-card.wide { max-width: 640px; }
.form-group select, .form-group textarea { width: 100%; padding: .875rem 1rem; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 1rem; font-family: inherit; background: white; }
.form-group select:focus, .form-group textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }
.form-group textarea { resize: vertical; min-height: 5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.kind-choice { display: block; border: 2px solid #e1e5e9; border-radius: 8px; padding: .65rem .9rem; margin-bottom: .5rem; cursor: pointer; font-weight: 500; }
.kind-choice:has(input:checked) { border-color: #667eea; background: #f4f5ff; }
.kind-choice small { margin-top: .1rem; font-weight: 400; }
.form-group .kind-choice input { width: auto; margin-right: .6rem; vertical-align: middle; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { background: #e8f6ee; color: #14532d; border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.muted { color: #6b7280; font-weight: 400; }
.code-input { text-align: center; font-size: 2rem !important; letter-spacing: .4em; text-transform: uppercase; font-weight: 700; }
