body {
  background: #f8fafc;
}

.signin-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-card {
  width: 100%;
  max-width: 420px;
  background: #f8fafc;
  padding: 36px 20px;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.signin-card.success {
  transform: scale(0.92);
  opacity: 0;
}

h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.signin-subtext {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: #5b5af0;
  box-shadow: 0 0 0 4px rgba(91, 90, 240, 0.15);
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 38px;
  font-size: 13px;
  font-weight: 600;
  color: #5b5af0;
  cursor: pointer;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 22px;
}

.auth-row a {
  color: #5b5af0;
  text-decoration: none;
  font-weight: 600;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-message {
  display: none;
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}

.signin-btn {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #5b5af0, #6d6bff);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.signin-card.loading .btn-text {
  display: none;
}

.signin-card.loading .spinner {
  display: inline-block;
}

.signin-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.signin-footer a {
  color: #5b5af0;
  font-weight: 700;
  text-decoration: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
