/* ═══════════════════════════════════════════════
   LOGIN PAGE STYLES
   ═══════════════════════════════════════════════ */

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px 40px;
  width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
}
.logo {
  text-align: center;
  margin-bottom: 28px;
}
.logo-icon {
  width: 52px; height: 52px;
  background: #2563eb;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 10px;
}
.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.logo-sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}
.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #111827;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.btn-login {
  width: 100%;
  padding: 11px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.btn-login:hover:not(:disabled):not(.is-loading) { background: #1d4ed8; }
.btn-login:not(:disabled):not(.is-loading):active {
  background: #1e40af;
  transform: translateY(1px) scale(.98);
}
.btn-login:disabled,
.btn-login.is-loading,
.btn-login[aria-busy="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.btn-login.is-loading,
.btn-login[aria-busy="true"] {
  cursor: progress;
}
.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.error-msg.hidden {
  display: none;
}
.error-msg.blocked {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}
.error-msg__icon {
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}
.error-msg__text {
  flex: 1;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  30%       { transform: translateX(6px); }
  45%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}
.login-card.shake {
  animation: shake 0.45s ease;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
