/* Isolated login styles — avoids conflicts with admin app.css */

.login-page,
.login-page * {
  box-sizing: border-box;
}

.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: #eef1f4;
}

.login-shell {
  width: 100%;
  max-width: 920px;
  min-height: 540px;
  display: flex;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  position: relative;
}

.login-brand {
  position: relative;
  flex: 1 1 50%;
  width: 50%;
  background: #14b8a6;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 48px 40px;
  z-index: 1;
}

.login-brand-inner {
  position: relative;
  z-index: 2;
  max-width: 300px;
}

.login-brand-logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #ffffff;
  margin: 0 0 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.login-brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
}

.login-brand-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
}

.login-brand-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand-meta {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand-pill {
  display: inline-flex;
  padding: 10px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.login-curve {
  position: absolute;
  top: 50%;
  right: -96px;
  width: 192px;
  height: 192px;
  margin-top: -96px;
  border-radius: 50%;
  border: 26px solid #ffffff;
  background: transparent;
  z-index: 3;
  pointer-events: none;
}

.login-form-panel {
  flex: 1 1 50%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.login-form-wrap {
  width: 100%;
  max-width: 300px;
}

.login-form-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.login-form-rule {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: #14b8a6;
  margin: 10px auto 28px;
}

.login-form .alert {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.login-field {
  position: relative;
  margin-bottom: 22px;
}

.login-field input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  border: 0 !important;
  border-bottom: 1.5px solid #d1d5db !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 36px 12px 0 !important;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
  appearance: none;
  -webkit-appearance: none;
}

.login-field input::placeholder {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af;
  opacity: 1;
}

.login-field input:focus {
  border-bottom-color: #14b8a6 !important;
}

.login-field-icon {
  position: absolute;
  right: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: #9ca3af;
  pointer-events: none;
}

.login-field-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.login-submit {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #14b8a6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.28);
}

.login-submit:hover {
  background: #0f9f90 !important;
}

@media (max-width: 820px) {
  .login-page {
    padding: 16px;
    align-items: stretch;
  }

  .login-shell {
    flex-direction: column;
    min-height: auto;
    max-width: 480px;
    margin: auto;
  }

  .login-brand,
  .login-form-panel {
    width: 100%;
    flex: none;
  }

  .login-brand {
    padding: 32px 24px 40px;
    min-height: 220px;
  }

  .login-brand-title {
    font-size: 24px;
  }

  .login-curve {
    width: 140px;
    height: 140px;
    margin-top: -70px;
    right: -70px;
    border-width: 18px;
  }

  .login-form-panel {
    padding: 32px 24px 36px;
  }
}

@media (max-width: 480px) {
  .login-curve {
    display: none;
  }
}
