/* =====================================================================
   LOGIN MODAL — "Continue with Google"
   Loaded by website/layouts/login.blade.php. Replaces the old
   Materialize-style markup (classes this Bootstrap site never loads) and
   the hot-linked Wikimedia logo image with a self-contained button.
   ===================================================================== */
.jc-google-auth{ margin-top: 4px; }

.jc-google-auth__divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B6268;
}
.jc-google-auth__divider::before,
.jc-google-auth__divider::after{
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #E6DDD8;
}

.jc-google-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #DADCE0;
  border-radius: 12px;
  background: #fff;
  color: #1F1F1F;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.jc-google-btn:hover{
  background: #F8F9FA;
  border-color: #C6C9CE;
  color: #1F1F1F;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.14);
}
.jc-google-btn:active{ background: #F1F3F4; }
.jc-google-btn:focus{ outline: none; }
.jc-google-btn:focus-visible{
  outline: 3px solid #B23C56;
  outline-offset: 2px;
  color: #1F1F1F;
  text-decoration: none;
}
.jc-google-btn__logo{ flex-shrink: 0; display: block; }
.jc-google-btn span{ min-width: 0; overflow-wrap: anywhere; }

.jc-google-auth__error{
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FBE9E7;
  color: #8C1D18;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce){
  .jc-google-btn{ transition: none; }
}

/* =====================================================================
   MOBILE-NUMBER LOGIN MODAL (mobileLogin.blade.php).
   Root causes fixed here (see mobileLogin.blade.php for the matching
   markup changes):
     1. The shared .modal-container .modal-header background-image + its
        :after dark-photo scrim (style.css ~4776-4796) is designed for a
        large hero photo. This modal no longer sets that inline background,
        so the :after scrim is neutralized below — otherwise it would just
        render as an unexplained dark block. This only touches .jc-mobile-
        login; login.blade.php/register.blade.php/otp.blade.php keep the
        original photo-header treatment untouched.
     2. .form-box .form-control (style.css ~3454) has a blanket 40px left
        padding sized for its icon (style.css ~3432, icon at left:15px) —
        the country-code box no longer has an icon, and never had enough
        width (72px) to hold both that padding and centered "+91" text
        (72 - 40 - 20(right) = 12px left for text). Both fields get an
        explicit, icon-free padding below instead of inheriting that.
   ===================================================================== */

/* ---- Header: plain surface, small logo + title, no photo/scrim.
       Selectors below are written a class deeper than the shared
       .modal-container rules they override (style.css ~4776-4811), which
       beats them on specificity alone — no !important needed. ---- */
.jc-mobile-login.modal-container .modal-header{
  background: var(--jc-surface, #fff);
  padding: 16px 20px;
}
.jc-mobile-login .modal-header::after{ display: none; }
.jc-mobile-login__brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.jc-mobile-login__logo{
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.jc-mobile-login.modal-container .modal-title{
  color: var(--jc-text, #1F1A1C);
  font-size: 17px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jc-mobile-login.modal-container .jc-mobile-login__close.close{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 44px;
  min-height: 44px;
  margin: -6px -8px -6px 8px;
  padding: 0;
  color: var(--jc-text-muted, #75726C);
  font-size: 20px;
  opacity: 1;
  flex-shrink: 0;
}
.jc-mobile-login.modal-container .jc-mobile-login__close.close:hover{
  color: var(--jc-text, #1F1A1C);
}

/* ---- Body / dialog: fit the viewport, scroll instead of clipping when
       the on-screen keyboard shrinks it, respect the bottom safe area. ---- */
.jc-mobile-login .modal-dialog{
  max-width: 400px;
}
.jc-mobile-login .modal-content{
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jc-mobile-login .modal-body{
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
@media (max-width: 575px){
  .jc-mobile-login .modal-dialog{
    margin: 0.75rem;
    max-width: none;
  }
  .jc-mobile-login .modal-content{
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }
}

/* ---- Phone row: explicit, icon-free padding (root cause #2 above) so
       "+91" has room to sit centered instead of being squeezed into ~12px. ---- */
.jc-mobile-login .input-box{
  margin-bottom: 16px;
}
.jc-mobile-login__phone-row{
  display: flex;
  gap: 8px;
}
.jc-mobile-login__code{
  flex: 0 0 76px;
}
.jc-mobile-login__code .form-control{
  padding: 12px 8px;
  text-align: center;
}
.jc-mobile-login__number{
  flex: 1 1 auto;
  min-width: 0;
}
.jc-mobile-login__number .form-control{
  padding: 12px 16px;
}
.jc-mobile-login .form-control-styled{
  height: 48px;
}

/* ---- Button spacing: explicit, so it doesn't inherit whatever gap the
       surrounding .input-box/.btn-box defaults happen to add up to. ---- */
.jc-mobile-login .btn-box{
  margin-top: 4px;
}
.jc-mobile-login .btn-box .theme-btn{
  min-height: 48px;
}

.jc-mobile-login__notice{
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FBF3D9;
  color: #6B5B15;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.jc-mobile-login__back{
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 0;
  background: none;
  color: #6B6268;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.jc-mobile-login__back:hover{ color: #1F1A1C; }
