/* Compact investor dialogs. Keep the established ivory and green identity. */
#investor-login-dialog {
    width: min(31rem, calc(100% - 2rem)); max-height: calc(100dvh - 1.5rem);
    padding: 1.125rem 1.5rem; border: 1px solid #bd8b2066; border-radius: 1rem;
    background: var(--paper, #fffdf8); color: var(--chrome-green); box-shadow: none;
    overscroll-behavior: contain; scrollbar-width: thin;
}
#investor-login-dialog [hidden] { display: none !important; }
#investor-login-dialog::backdrop { background: #142d269e; backdrop-filter: none; }
#investor-login-dialog > form[method="dialog"] { margin: 0; }
html body.public-site #investor-login-dialog > form[method="dialog"] .investor-login-close {
    width: 2.25rem; height: 2.25rem; min-height: 0; padding: 0; border-radius: .5rem;
    font-size: 1.125rem; background: var(--chrome-green); color: #fff8e8;
}
html body.public-site #investor-login-dialog > form[method="dialog"] .investor-login-close:hover { background: var(--green); }
#investor-login-dialog .auth-brand { display: flex; justify-content: center; margin: .125rem 2rem .5rem; }
#investor-login-dialog .auth-brand .investor-welcome-logo { width: 172px; height: auto; max-width: 100%; }
#investor-login-dialog #investor-login-title { display: block; margin: 0; color: var(--chrome-green); font-size: 1.5rem; font-weight: 500; line-height: 1.4; text-align: center; }
#investor-login-dialog #investor-login-title::after { content: ''; display: block; width: 3rem; height: 2px; background: var(--gold); margin: .3rem auto .375rem; }
#investor-login-dialog .auth-description { margin: 0 0 .625rem; font-size: .875rem; color: #65736c; text-align: center; line-height: 1.5; }
#investor-login-dialog .portal-entry-tabs { margin: 0 0 .625rem; padding: .1875rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--sand); }
#investor-login-dialog .portal-entry-tabs button { min-height: 2.5rem; border-radius: .4rem; font-family: inherit; font-size: .9375rem; font-weight: 500; }
html body.public-site #investor-login-dialog .portal-entry-tabs button[aria-pressed="true"] { background: var(--chrome-green); color: #fff8e8; }
html body.public-site #investor-login-dialog .portal-entry-tabs button[aria-pressed="true"]:hover { background: var(--green); }
#investor-login-dialog .portal-entry-card { border: 0; padding: 0; background: transparent; }
#investor-login-dialog .portal-entry-card > form { margin: 0; }
#investor-login-dialog label { display: block; margin: 0 0 .625rem; font-size: .875rem; font-weight: 500; line-height: 1.5; }
#investor-login-dialog input:not([type="checkbox"]), #investor-login-dialog select {
    box-sizing: border-box; min-height: 2.75rem; height: 2.75rem; margin-top: .25rem;
    border: 1px solid #cbcfc6; border-radius: .4rem; background: #fff; color: var(--chrome-green);
    font-family: inherit; font-size: 1rem; padding: .5rem .625rem; box-shadow: none;
}
#investor-login-dialog input[type="email"] { direction: ltr; text-align: start; }
#investor-login-dialog input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
html body.public-site #investor-login-dialog .portal-entry-card .button {
    min-height: 2.75rem; font-family: inherit; font-size: .9375rem; font-weight: 500;
    border-radius: .4rem; padding: .625rem .875rem;
    background: var(--chrome-green); color: #fff8e8; border-color: #597269;
}
html body.public-site #investor-login-dialog .portal-entry-card .button:hover:not(:disabled) { background: var(--green); color: #fff8e8; }
#investor-login-dialog .portal-otp-row { margin: 0 0 .375rem; gap: .5rem; }
html body.public-site #investor-login-dialog .portal-entry-card .portal-otp-row .button { min-width: 5.5rem; width: auto; padding-inline: .625rem; font-size: .8125rem; }
#investor-login-dialog .form-field-hint { display: block; font-size: .75rem; font-weight: 400; color: #68766e; line-height: 1.5; margin-top: .25rem; }
#investor-login-dialog .password-visibility-field input { padding-inline-end: 3rem; }
#investor-login-dialog .password-visibility-toggle { min-height: 0; background: transparent; color: #65736c; }
#investor-login-dialog .checkbox { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; }
#investor-login-dialog .checkbox input { flex: none; margin-top: .3rem; }
#investor-login-dialog .portal-recovery-link { text-align: center; margin: .75rem 0 0; font-size: .8125rem; }
#investor-login-dialog .auth-back { display: block; background: transparent; color: #526b60; border: 0; margin: .25rem auto 0; padding: .5rem; font-family: inherit; font-size: .8125rem; font-weight: 400; }
.auth-progress { display: flex; list-style: none; gap: .5rem; padding: 0; margin: 0 0 .625rem; counter-reset: auth-step; }
.auth-progress li { flex: 1; text-align: center; font-size: .75rem; color: #7a857f; position: relative; line-height: 1.5; }
.auth-progress li::before { counter-increment: auth-step; content: counter(auth-step); display: grid; place-items: center; width: 1.25rem; height: 1.25rem; background: #e8ece7; color: #52665a; border-radius: 50%; margin: 0 auto .1875rem; }
.auth-progress li[aria-current] { color: var(--chrome-green); font-weight: 500; }
.auth-progress li[aria-current]::before, .auth-progress li[data-complete]::before { background: var(--chrome-green); color: #fff; }
.auth-progress li[data-complete]::before { content: '✓'; }
[data-auth-step] { padding: 0; margin: 0; border: 0; min-width: 0; }
.auth-verified { background: #eef5eb; color: #244b34; padding: .5rem .625rem; border-radius: .4rem; font-size: .8125rem; margin: 0 0 .625rem; }
.auth-countdown, .auth-email-note { display: block; text-align: center; color: #66766c; font-size: .75rem; margin: .1875rem 0 .5rem; }
#investor-login-dialog .portal-social-signin { margin: 0 0 .625rem; }
#investor-login-dialog .portal-social-signin > p { text-align: center; font-weight: 400; font-size: .8125rem; color: #65736c; margin: 0 0 .5rem; }
.portal-social-buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body.public-site #investor-login-dialog .portal-entry-card .portal-social-buttons {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem;
    width: min(100%, 20rem); margin-inline: auto;
}
html body.public-site #investor-login-dialog .portal-entry-card .portal-social-buttons .social-provider {
    width: 100%; height: 3rem; min-height: 3rem; padding: .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgb(21 103 96 / 7%); border: 1px solid rgb(21 103 96 / 13%); border-radius: .5rem;
    box-shadow: none; opacity: 1;
}
html body.public-site #investor-login-dialog .portal-entry-card .portal-social-buttons .social-provider:hover:not(:disabled) {
    background: rgb(21 103 96 / 13%); border-color: rgb(21 103 96 / 25%);
}
.portal-social-buttons .social-provider svg { width: 1.875rem; height: 1.875rem; flex: none; }
.portal-social-buttons .social-provider:disabled { cursor: not-allowed; }
.portal-social-buttons .social-unavailable { text-align: center; }
.portal-social-buttons .social-unavailable small { display: block; color: #7c857e; font-size: .625rem; line-height: 1.4; }
#investor-login-dialog .auth-divider { display: flex; align-items: center; gap: .625rem; margin: .5rem 0 0; font-size: .75rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: #dfe2d8; flex: 1; }
@media (max-width: 600px) {
    #investor-login-dialog { width: calc(100% - 2rem); max-height: calc(100dvh - 1.5rem); padding: 1rem; }
    #investor-login-dialog #investor-login-title { font-size: 1.375rem; }
    #investor-login-dialog .auth-brand .investor-welcome-logo { width: 156px; }
    #investor-login-dialog .auth-description { display: none; }
    #investor-login-dialog .portal-social-signin > p:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

#investor-login-dialog .portal-otp-row label { margin-bottom: 0; }

html body.public-site #investor-login-dialog .portal-recovery-link a {
    text-decoration: none;
    text-underline-offset: .3em;
    text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
    html body.public-site #investor-login-dialog .portal-recovery-link a:hover { text-decoration: underline; }
}
html body.public-site #investor-login-dialog .portal-recovery-link a:focus-visible { text-decoration: underline; }
