/* Login page — mobile (max-width: 768px) */

@media (max-width: 768px) {
  body.rj-login-page {
    overflow-x: clip;
  }

  body.rj-login-page .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .lgn-hero {
    padding: 16px 0 32px;
    overflow-x: clip;
  }

  .lgn-hero__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .lgn-hero__crumb {
    order: 0;
  }

  .lgn-breadcrumb {
    font-size: 0.76rem;
  }

  .lgn-hero__badge {
    margin-bottom: 16px;
    font-size: 0.74rem;
  }

  .lgn-hero__title-line {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .lgn-hero-lead {
    font-size: 0.92rem;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .lgn-hero__trust li {
    font-size: 0.84rem;
  }

  .lgn-hero__meta {
    justify-content: flex-start;
  }

  .lgn-hero__meta span {
    font-size: 0.74rem;
  }

  /* Form first on mobile */
  .lgn-card {
    order: -1;
    padding: 22px 18px 24px;
    border-radius: var(--rj-radius);
  }

  .lgn-card-head {
    text-align: center;
    margin-bottom: 18px;
  }

  .lgn-card-head h2 {
    font-size: 1.28rem;
  }

  .lgn-card-head p {
    font-size: 0.84rem;
  }

  .lgn-field input {
    font-size: 16px;
    padding: 13px 14px;
  }

  .lgn-submit {
    min-height: 48px;
    padding: 14px 20px;
  }

  .lgn-forgot {
    text-align: center;
  }

  .lgn-hero__intro {
    text-align: center;
  }

  .lgn-hero__trust {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .lgn-hero__trust li {
    font-size: 0.76rem;
  }

  .lgn-hero__meta {
    justify-content: center;
  }

  .lgn-pillars {
    padding-bottom: 24px;
  }

  .lgn-pillar-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--rj-radius);
  }

  .lgn-pillar {
    padding: 16px 14px;
    gap: 10px;
  }

  .lgn-pillar > i {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .lgn-pillar strong { font-size: 0.8rem; }
  .lgn-pillar em { font-size: 0.72rem; }

  .lgn-features {
    padding-bottom: 48px;
  }

  .lgn-features-grid {
    gap: 12px;
  }

  .lgn-feature {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 18px 16px;
  }

  .lgn-feature > i {
    margin: 0;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .lgn-feature strong {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .lgn-feature span {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lgn-hero__title-line {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
  }

  .lgn-hero__trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lgn-pillar-bar {
    grid-template-columns: 1fr;
  }

  .lgn-pillar {
    border-right: none;
    border-bottom: 1px solid var(--rj-line);
  }

  .lgn-pillar:last-child {
    border-bottom: none;
  }

  .lgn-hero__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .lgn-hero__meta span {
    justify-content: center;
  }
}
