/* =========================================================
   SOCIETY AUTH (Login + Register) — common styles
   Used by both login.blade.php and register.blade.php
========================================================= */

html, body{ height:100%; }

/* ── Left panel: full-bleed illustration ──
   position:sticky so it stays fully visible while a tall
   form (register has many more fields than login) scrolls
   on the right, instead of being cut off at 100vh. */
.mh-login-left{
    position:sticky;
    top:0;
    height:100vh;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg, #dbeeff 0%, #eef6ff 55%, #ffffff 100%);
}
.mh-login-left-img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    display:block;
}

/* ── Right panel ── */
.mh-login-right{
    position:relative;
    min-height:100vh;
    background:#ffffff;
    overflow-x:hidden;      /* was: overflow:hidden — that clipped tall register forms */
    padding:32px 20px;
}

.mh-login-card{
    width:100%;
    max-width:440px;
    position:relative;
    background:linear-gradient(180deg, #dbeeff 0%, #eef6ff 55%, #ffffff 100%);
    z-index:2;
    margin:0 auto;
}

/* Register variant: wider (2-column form) and plain white,
   matching the reference card (no blue tint). */
.mh-login-card--wide{
    max-width:760px;
    background:#ffffff;
}

.mh-login-title{ font-size:26px; font-weight:800; color:#0f172a; margin:14px 0 2px; }
.mh-login-subtitle{ font-size:14.5px; color:#6b7280; margin:0; }

.mh-login-label{ font-size:13.5px; font-weight:600; color:#1f2937; }

.mh-login-input-group{ position:relative; }
.mh-login-input-icon{
    position:absolute;
    left:14px; top:50%;
    transform:translateY(-50%);
    color:#9ca3af;
    display:flex;
    pointer-events:none;
}
.mh-login-input-icon svg{ width:18px; height:18px; }

.mh-login-input{
    height:48px;
    padding-left:42px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    font-size:14px;
}
.mh-login-input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}
.mh-login-input--pw{ padding-right:42px; }

/* textareas inside the icon-group need a taller box, icon pinned to top */
.mh-login-input-group textarea.mh-login-input{
    height:auto;
    min-height:90px;
    padding-top:12px;
}
/* :has() has broad modern-browser support (Chrome/Edge/Safari/Firefox 121+);
   on older browsers the icon just stays vertically centered instead of
   pinned to the top — a minor cosmetic fallback, nothing breaks. */
.mh-login-input-group:has(textarea) .mh-login-input-icon{
    top:22px;
    transform:none;
}

.mh-login-eye{
    position:absolute;
    right:12px; top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#9ca3af;
    z-index:3;
}

.mh-login-remember{ font-size:13.5px; color:#374151; }
.mh-login-forgot{ font-size:13.5px; font-weight:600; color:#2563eb; text-decoration:none; }
.mh-login-forgot:hover{ text-decoration:underline; }

.mh-login-btn{
    background:linear-gradient(90deg,#1e3a8a,#3b82f6);
    color:#fff;
    border:none;
    border-radius:999px;
    height:50px;
    font-weight:700;
    font-size:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:transform .15s ease, box-shadow .15s ease;
}
.mh-login-btn svg{ width:18px; height:18px; }
.mh-login-btn:hover{
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 12px 22px -6px rgba(37,99,235,.45);
}

.mh-login-divider{ position:relative; text-align:center; margin:18px 0 16px; }
.mh-login-divider::before{
    content:''; position:absolute; left:0; right:0; top:50%; height:1px; background:#e5e7eb;
}
.mh-login-divider span{
    position:relative; background:#fff; padding:0 12px; color:#9ca3af; font-size:12px; font-weight:600;
}

.mh-login-btn-outline{
    background:#fff;
    border:1.5px solid #2563eb;
    color:#2563eb;
    border-radius:999px;
    height:48px;
    font-weight:600;
    font-size:14.5px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    transition:background .15s ease;
}
.mh-login-btn-outline svg{ width:17px; height:17px; }
.mh-login-btn-outline:hover{ background:#eff6ff; color:#2563eb; }

.mh-login-copyright{
    text-align:center;
    font-size:11.5px;
    color:#9ca3af;
    margin:22px 0 0;
}

/* soft decorative leaf blobs, bottom-right of the form panel */
.mh-login-leaf{
    position:absolute;
    border-radius:50%;
    background:#dcfce7;
    opacity:.6;
    z-index:1;
    pointer-events:none;
}
.mh-login-leaf--1{ width:220px; height:220px; right:-90px; bottom:-100px; }
.mh-login-leaf--2{ width:140px; height:140px; right:40px; bottom:-70px; background:#bbf7d0; }

@media (max-width:575.98px){
    .mh-login-title{ font-size:22px; }
    .mh-login-leaf--1{ width:160px; height:160px; }
    .mh-login-leaf--2{ display:none; }
}

/* =========================================================
   REGISTER-ONLY ADDITIONS
========================================================= */

.mh-login-icon-header{
    display:flex;
    align-items:flex-start;
    gap:14px;
    margin-bottom:22px;
}
.mh-login-icon-badge{
    width:48px; height:48px;
    border-radius:50%;
    background:#dbeafe;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.mh-login-icon-badge svg{ width:22px; height:22px; }
.mh-login-icon-header h2{ font-size:22px; font-weight:800; color:#0f172a; margin:0 0 2px; }
.mh-login-icon-header p{ font-size:13.5px; color:#6b7280; margin:0; }

/* Country / State come from <x-StateDistrict />, whose internal
   markup isn't available here. These target the <select> by its
   `name` attribute so no changes to that component are required —
   if it names its fields differently, update the two selectors below. */
.mh-login-statedistrict select[name="country"],
.mh-login-statedistrict select[name="state"]{
    padding-left:42px !important;
    background-repeat:no-repeat;
    background-size:18px 18px;
    background-position:14px center;
    border-radius:10px;
    height:48px;
    border:1px solid #e5e7eb;
}
.mh-login-statedistrict select[name="country"]{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c2.5 2.5 3.8 5.7 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.7-3.8-9S9.5 5.5 12 3Z'/></svg>");
}
.mh-login-statedistrict select[name="state"]{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.8'><path d='M12 21s7-6.5 7-11.5A7 7 0 105 9.5C5 14.5 12 21 12 21Z'/><circle cx='12' cy='9.5' r='2.4'/></svg>");
}