html,
body {
  min-height: 100%;
}

body.page-template-template-login {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 30%),
    radial-gradient(circle at right center, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(160deg, #f6faff 0%, #eef4ff 48%, #f9fbff 100%);
}

.blesskin-login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
}

.blesskin-login-page::before,
.blesskin-login-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.blesskin-login-page::before {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 10%;
  background: rgba(191, 219, 254, 0.6);
}

.blesskin-login-page::after {
  width: 360px;
  height: 360px;
  right: -70px;
  bottom: 5%;
  background: rgba(147, 197, 253, 0.35);
}

.blesskin-login-form-wrapper {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 2.4rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.blesskin-login-title {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #12316d;
}

.blesskin-login-subtitle {
  margin-bottom: 1.6rem;
  text-align: center;
  color: #5d729c;
  line-height: 1.6;
}

.blesskin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blesskin-login-input-group {
  position: relative;
}

.blesskin-login-input-field {
  width: 100%;
  min-height: 60px;
  padding: 1.45rem 1rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.95));
  color: #102347;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blesskin-login-input-field:focus {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.blesskin-login-input-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6880ac;
  pointer-events: none;
  transition: all 0.2s ease;
}

.blesskin-login-input-field:focus + .blesskin-login-input-label,
.blesskin-login-input-field:not(:placeholder-shown) + .blesskin-login-input-label {
  top: 0.58rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #2563eb;
}

.blesskin-login-btn {
  margin-top: 0.45rem;
  min-height: 56px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.blesskin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(37, 99, 235, 0.3);
  filter: saturate(1.05);
}

.blesskin-login-signup-link {
  margin-top: 1.25rem;
  text-align: center;
  color: #5d729c;
}

.blesskin-login-signup-link p + p {
  margin-top: 0.55rem;
}

.blesskin-login-signup-link a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.blesskin-login-signup-link a:hover {
  text-decoration: underline;
}

.blesskin-login-social-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.blesskin-login-social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #f7faff;
  color: #1d4ed8;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.blesskin-login-social-links .social-icon:hover {
  transform: translateY(-2px);
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.blesskin-login-error {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  background: rgba(254, 242, 242, 0.94);
  color: #b91c1c;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .blesskin-login-page {
    padding: 2rem 1rem;
  }

  .blesskin-login-form-wrapper {
    padding: 1.6rem;
    border-radius: 22px;
  }

  .blesskin-login-title {
    font-size: 1.8rem;
  }
}
