/* ============================================================
   Two-column layout + Social buttons + Passkey
   ============================================================ */

/* ---- Two-column layout ---- */
.rm-login-columns {
  display: flex;
  flex-direction: column;
}

.rm-login-left {
  flex: 1;
  min-width: 0;
}

.rm-login-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

/* Vertical divider for mobile (horizontal line) */
.rm-login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--rm-text-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 500;
}

.rm-login-divider::before,
.rm-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rm-border, #e2e8f0);
}

/* ---- Desktop: side by side ---- */
@media (min-width: 768px) {
  .rm-login-two-col {
    flex-direction: row;
    gap: 0;
  }

  .rm-login-two-col .rm-login-left {
    flex: 1.15;
    padding-right: 32px;
  }

  .rm-login-two-col .rm-login-right {
    flex: 0.85;
    padding-left: 32px;
    border-left: none;
  }

  .rm-login-two-col .rm-login-divider {
    flex-direction: column;
    margin: 0;
    width: 1px;
    min-height: 100%;
    gap: 12px;
    padding: 0;
    flex-shrink: 0;
  }

  .rm-login-two-col .rm-login-divider::before,
  .rm-login-two-col .rm-login-divider::after {
    width: 1px;
    height: auto;
    flex: 1;
    background: var(--rm-border, #e2e8f0);
  }

  .rm-login-two-col .rm-login-divider span {
    writing-mode: horizontal-tb;
    white-space: nowrap;
  }
}

/* ---- Social buttons ---- */
.rm-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rm-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--rm-border, #e2e8f0);
  border-radius: var(--rm-radius-sm, 10px);
  background: var(--rm-card-bg, #fff);
  color: var(--rm-text, #0f172a) !important;
  font-family: var(--rm-font, inherit);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
}

.rm-social-btn:hover {
  border-color: var(--rm-border-hover, #cbd5e1);
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
}

.rm-social-btn:active {
  transform: scale(0.99);
}

.rm-social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---- Passkey button ---- */
.rm-passkey-btn {
  border-color: var(--rm-primary, #0097B2) !important;
  color: var(--rm-primary, #0097B2) !important;
  background: var(--rm-primary-subtle, rgba(0, 151, 178, 0.04));
  font-weight: 600;
}

.rm-passkey-btn:hover {
  background: var(--rm-primary, #0097B2) !important;
  color: #ffffff !important;
  border-color: var(--rm-primary, #0097B2) !important;
  box-shadow: 0 2px 8px rgba(0, 151, 178, 0.25);
}

.rm-passkey-btn .rm-social-icon {
  stroke: currentColor;
}

/* ---- Hide old social/footer elements ---- */
.pf-v5-c-login__main-footer-band,
.pf-v5-c-login__main-footer-links,
#kc-social-providers,
#kc-select-try-another-way-form {
  display: none !important;
}

.pf-v5-c-login__main-footer:empty,
.pf-v5-c-login__main-footer:not(:has(*:not([style*="display: none"]))) {
  display: none !important;
  padding: 0 !important;
}

/* ---- Remember me (centered, bottom) ---- */
.rm-remember-me {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rm-border, #e2e8f0);
}

.rm-remember-me label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--rm-text-secondary, #64748b);
  font-weight: 400;
}

.rm-remember-me input[type="checkbox"] {
  accent-color: var(--rm-primary, #0097B2);
  width: 16px;
  height: 16px;
  cursor: pointer;
}