.login-page {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #ffffff;
}

.login-page::before {
  display: none;
}

.login-page::after {
  display: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  padding: 42px 38px 34px;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  text-align: center;
  margin-bottom: 30px;
}

.brand-avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #0f172a;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.label-row label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.caps-hint {
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  background: #f1f5f9;
  border: none;
  border-radius: 12px;
  outline: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  background: #e8edf3;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.field input::placeholder {
  color: #94a3b8;
}

.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #0f172a;
  caret-color: #0f172a;
  transition: background-color 99999s ease-in-out 0s;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 64px;
}

.toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.toggle-btn:hover {
  color: #0f172a;
  background: #e8edf3;
}

.form-error {
  padding: 11px 14px;
  font-size: 14px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  line-height: 1.5;
}

.submit-btn {
  position: relative;
  height: 48px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-indent: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(29, 78, 216, 0.34);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 480px) {
  .login-page {
    padding: 14px;
  }

  .login-card {
    padding: 32px 22px 26px;
    border-radius: 18px;
  }

  .brand {
    margin-bottom: 26px;
  }

  .brand-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 14px;
  }

  .brand-name {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .login-form {
    gap: 16px;
  }

  .field input {
    height: 48px;
    font-size: 16px;
  }

  .submit-btn {
    height: 50px;
  }
}

@media (max-width: 768px) {
  .login-card {
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-card {
    animation: none;
  }
}
