/* =============================================
   Login Page Styles — Blogger Outreach
   ============================================= */

:root {
  --page-bg: #f6f5f7;
  --panel-bg: #19082c;
  --panel-accent: #ba74ff;
  --panel-copy: #a59aaa;
  --panel-bright: #f8f4ff;
  --success: #03e778;
  --card-border: rgba(37, 17, 64, 0.08);
  --card-copy: #261838;
  --card-muted: #9f96b4;
  --field-bg: #fbfafc;
  --field-border: #e5dff0;
  --button-bg: #7f36d8;
  --button-bg-hover: #722ccb;
  --shadow-soft: 0 28px 70px rgba(31, 12, 54, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Geist", sans-serif;
  background: var(--page-bg);
  color: var(--card-copy);
  overflow-x: hidden;
  overflow-y: auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Login Panel ---------- */
.loginPanel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background-color: white;
}

.loginPanel .brand {
  display: inline-block;
  margin-bottom: 24px;
}

.loginPanel .brand-image {
  display: block;
  width: 160px;
  height: auto;
}

.loginDecorTopLeft {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  pointer-events: none;
}

.loginDecorTopRight {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}

.loginDecorBottomRight {
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.loginDecorBottomLeft {
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

/* ---------- Form Card ---------- */
.form-card {
  width: min(100%, 520px);
  padding: 34px 58px 30px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle, rgba(138, 104, 191, 0.08) 1px, transparent 1px),
    #f4f4f4;
  background-size: 8px 8px;
  z-index: 200;
  position: relative;
}

.form-header {
  text-align: center;
}

.form-header h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-family: "Geist", sans-serif !important;
}

.form-header p {
  margin: 10px 0 0;
  color: var(--card-muted);
  font-size: 14px;
}

/* ---------- Alert boxes ---------- */
.alert-info-box {
  margin-top: 16px;
  padding: 10px 14px;
  background-color: #d4edda;
  border-radius: 4px;
  color: #155724;
  font-size: 13px;
  text-align: center;
}

.alert-error-box {
  margin-top: 16px;
  padding: 10px 14px;
  background-color: #f8d7da;
  border-radius: 4px;
  color: #721c24;
  font-size: 13px;
}

.alert-error-box p {
  margin: 0;
}

/* ---------- Social Button (Google) ---------- */
.social-button {
  width: 100% !important;
  margin-top: 28px !important;
  padding: 14px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 1px solid var(--field-border) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #3d3050 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.social-button:hover {
  background: #f5f0fc !important;
}

.social-button svg {
  height: 20px !important;
  width: auto !important;
}

.social-button .ml-1 {
  margin-left: 4px;
}

/* ---------- Separator ---------- */
.login-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  color: #ad9dc0;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.login-separator span {
  height: 1px;
  background: rgba(111, 90, 146, 0.18);
  display: block;
}

.login-separator b {
  font-weight: 600;
}

/* ---------- Form Fields ---------- */
.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field > span:first-child,
.login-field-label-text {
  color: #3b2c52;
  font-size: 13px;
  font-weight: 600;
}

.login-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3b2c52;
  font-size: 13px;
  font-weight: 600;
}

.login-field-label a {
  font-size: 13px;
  font-weight: 500;
  color: #75638f;
}

.login-field-label a:hover {
  text-decoration: underline;
}

.login-input-wrap {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--field-bg);
}

.login-input-icon {
  color: #9d8bb8;
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.login-input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  padding: 10px 0;
  background: transparent;
  color: #322145;
  font-size: 14px;
}

.login-input-wrap input::placeholder {
  color: #b1a7bf;
}

.login-toggle-btn {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #9d8bb8;
  cursor: pointer;
}

.login-toggle-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Remember me ---------- */
.login-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  color: #9d92b0;
  font-size: 13px;
  line-height: 1.5;
}

.login-remember input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--button-bg);
}

/* ---------- Submit Button ---------- */
.login-submit-btn {
  border: none;
  border-radius: 4px;
  margin-top: 2px;
  width: 100%;
  padding: 15px 18px;
  background: #00c853;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(0, 200, 83, 0.2);
  transition: background 180ms ease, transform 180ms ease;
}

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

/* ---------- Form Footer ---------- */
.login-footer {
  margin: 26px 0 0;
  text-align: center;
  color: #a499b5;
  font-size: 13px;
}

.login-footer a {
  color: #352246;
  font-weight: 700;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .form-card {
    padding: 24px 20px 20px;
  }

  .loginDecorTopLeft,
  .loginDecorTopRight,
  .loginDecorBottomRight,
  .loginDecorBottomLeft {
    width: 100px;
  }
}

/* ---------- Register Page ---------- */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48.2fr 51.8fr;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: #1b0a2d;
  color: var(--panel-bright);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.decorativeTop {
  position: absolute;
  top: 0;
  left: 0;
  width: 188px;
  height: auto;
}

.decorativeBottom {
  position: absolute;
  bottom: 0;
  right: 0;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 60%;
  margin: 0 auto;
}

.brand {
  display: inline-block;
  margin-bottom: 42px;
}

.brand-image {
  display: block;
  width: 184px;
  height: auto;
}

.hero-copy h1 {
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  font-family: "Geist", sans-serif !important;
}

.hero-copy h1 span {
  color: var(--panel-accent);
  font-weight: 600;
}

.hero-copy p {
  max-width: 600px;
  margin: 20px 0 0;
  color: #a89cb0;
  font-size: 17px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 68px;
  margin-top: 62px;
}

.hero-stats article {
  display: grid;
  gap: 8px;
}

.hero-stats strong {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1;
  font-weight: 800;
  color: var(--success);
}

.hero-stats span {
  color: #8f849d;
  font-size: 14px;
}

.hero-footnote {
  margin-top: 120px;
  color: rgba(165, 154, 170, 0.5);
  font-size: 13px;
}

.form-panel {
  display: grid;
  place-items: center;
  padding: 28px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    var(--page-bg);
}

.signup-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span:first-child {
  color: #3b2c52;
  font-size: 13px;
  font-weight: 600;
}

.input-wrap {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--field-bg);
}

.input-icon,
.ghost-icon {
  color: #9d8bb8;
}

.input-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.input-icon svg,
.ghost-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.field input,
.field select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  padding: 10px 0;
  background: transparent;
  color: #322145;
  font-size: 14px;
}

.field input::placeholder {
  color: #b1a7bf;
}

.ghost-icon {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
}

.strength-meter {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.meter {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(111, 90, 146, 0.14);
}

.meter.active {
  background: var(--success);
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  color: #9d92b0;
  font-size: 13px;
  line-height: 1.5;
}

.terms input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--button-bg);
}

.terms a {
  color: #75638f;
}

.primary-button {
  border-radius: 4px;
  margin-top: 2px;
  width: 100%;
  padding: 15px 18px;
  background: linear-gradient(180deg, #8a3de3 0%, var(--button-bg) 100%);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(127, 54, 216, 0.2);
}

.primary-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-footer {
  margin: 26px 0 0;
  text-align: center;
  color: #a499b5;
  font-size: 13px;
}

.form-footer a {
  color: #352246;
  font-weight: 700;
}

.recaptcha-wrap {
  margin-top: 4px;
}

.inline-error {
  color: #b00020;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    padding: 40px 20px;
  }

  .hero-content {
    width: min(100%, 560px);
  }

  .form-panel {
    padding: 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}
