body {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.ps-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.ps-login-card {
  width: 100%;
  max-width: 520px;
  padding: 46px 34px;
}

.ps-login-heading {
  margin-bottom: 30px;
}

.ps-login-title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #111111;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.ps-login-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: #6f6f6f;
  max-width: 420px;
}

.ps-alert {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 14px;
}

.ps-alert-error {
  background: #ffe5e5;
  color: #9b1d1d;
}

.ps-alert-success {
  background: #e7f7e8;
  color: #1a6a2d;
}

.ps-social-area {
  margin-bottom: 22px;
}

.ps-social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d9d9d9;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #111111;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.social-button-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-button-text {
  letter-spacing: 0.08em;
}

.social-google {
  border-color: #d6d6d6;
}

.social-facebook {
  border-color: #3754a0;
  color: #3754a0;
}

.ps-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  color: #8a8a8a;
  font-size: 12px;
}

.ps-divider::before,
.ps-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d9d9d9;
}

.ps-form {
  display: grid;
  gap: 18px;
}

.ps-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7c7c7c;
  margin-bottom: 8px;
}

.ps-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  padding: 16px 18px;
  font-size: 14px;
  color: #111111;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-field-wrapper {
  position: relative;
  width: 100%;
}

.ps-field-label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7c7c7c;
  transition: all 0.2s ease;
}

.ps-input:focus+.ps-field-label,
.ps-input:not(:placeholder-shown)+.ps-field-label {
  top: 10px;
  left: 18px;
  font-size: 10px;
  color: #7c7c7c;
}

.ps-field-clear {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #ff2a2a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ps-field-clear:hover {
  background: rgba(255, 42, 42, 0.08);
}

.ps-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.ps-recaptcha-row {
  display: flex;
  margin: 10px 0 16px;
}

.ps-checkbox-row,
.ps-consent-list {
  display: grid;
  gap: 12px;
}

.ps-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ps-checkbox-field input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ps-checkbox-box {
  width: 28px;
  height: 28px;
  background: #111111;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex: none;
  margin-top: 2px;
}

.ps-checkbox-box::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 6px;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transition: transform 0.12s ease, opacity 0.12s ease;
  opacity: 0;
}

.ps-checkbox-field input[type="checkbox"]:checked+.ps-checkbox-box::before {
  transform: rotate(-45deg) scale(1);
  opacity: 1;
}

.ps-checkbox-field input[type="checkbox"]:focus+.ps-checkbox-box {
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.ps-checkbox-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: #111111;
}

.login-btn {
  width: 100%;
  border: none;
  background: #111111;
  color: #ffffff;
  padding: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

.ps-terms {
  margin-top: 20px;
  font-size: 12px;
  color: #8a8a8a;
}

.ps-link-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: #444;
}

.ps-text-link {
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.ps-resend-note {
  margin-top: 12px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

@media (max-width: 520px) {
  .ps-login-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .ps-social-buttons {
    grid-template-columns: 1fr;
  }
}