* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, #020617, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.login-wrap {
  width: 100%;
  max-width: 380px;
  padding: 16px;
}

.login-card {
  background: #020617;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: fadeUp .4s ease;
}

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

.brand {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.brand span {
  color: #60a5fa;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: #2563eb;
}

button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #2563eb;
  color: white;
  position: relative;
  overflow: hidden;
}

button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

button .loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

button.loading .btn-text {
  visibility: hidden;
}

button.loading .loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg) translate(-50%, -50%); }
}

.error {
  margin-top: 14px;
  font-size: 14px;
  color: #f87171;
  text-align: center;
  min-height: 18px;
  animation: shake .3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.datepicker {
  position: absolute;
  z-index: 50;
  pointer-events: auto;
}

.datepicker:not(.show) {
  display: none;
}
