/* Innovation Homes - account pages (login, forgot password, reset password...) */
:root {
    --ih-navy: #083548;
    --ih-navy-deep: #052434;
    --ih-blue: #2d84a8;
    --ih-blue-hover: #246d8c;
    --ih-ink: #1d2733;
    --ih-muted: #6b7684;
    --ih-line: #e3e8ee;
    --ih-field: #f5f8fa;
    --ih-panel: #ffffff;
    --ih-page: #eef3f6;
    --ih-radius: 12px;
    --ih-font-title: "Urbanist", "Segoe UI", sans-serif;
    --ih-font-body: "Mulish", "Segoe UI", sans-serif;
}

body.ih-auth-body {
    background: var(--ih-page);
    font-family: var(--ih-font-body);
    color: var(--ih-ink);
    margin: 0;
}

.ih-auth {
    display: flex;
    min-height: 100vh;
}

/* ---------- Hero (left) ---------- */
.ih-hero {
    position: relative;
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background: var(--ih-navy) url(/Common/Images/login/login-hero.jpg) center / cover no-repeat;
    overflow: hidden;
}

.ih-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(5, 36, 52, .55) 0%, rgba(8, 53, 72, .78) 55%, rgba(5, 36, 52, .96) 100%);
}

.ih-hero > * {
    position: relative;
}

.ih-hero__logo img {
    height: 72px;
    width: auto;
}

.ih-hero__body {
    max-width: 520px;
    animation: ih-rise .7s ease-out both;
}

.ih-hero__eyebrow {
    display: inline-block;
    font-family: var(--ih-font-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    margin-bottom: 20px;
    color: #d7ecf5;
}

.ih-hero__title {
    font-family: var(--ih-font-title);
    font-size: 44px;
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

.ih-hero__title span {
    color: #8fd0ea;
}

.ih-hero__text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 28px;
}

.ih-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ih-hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ih-hero__chips i {
    color: #8fd0ea;
}

.ih-hero__foot {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Panel (right) ---------- */
.ih-panel {
    flex: 0 0 520px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ih-panel);
    box-shadow: -20px 0 60px rgba(5, 36, 52, .08);
}

.ih-panel__inner {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 48px 24px;
    animation: ih-rise .6s .1s ease-out both;
}

.ih-panel__mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.ih-panel__mobile-logo img {
    height: 64px;
    width: auto;
}

.ih-panel__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-top: 1px solid var(--ih-line);
    font-size: 13px;
    color: var(--ih-muted);
}

.ih-panel__foot a {
    color: var(--ih-blue);
    font-weight: 600;
}

/* ---------- Typography inside the panel ---------- */
.ih-auth .login-form h3,
.ih-auth .ih-heading {
    font-family: var(--ih-font-title);
    font-weight: 800 !important;
    font-size: 30px !important;
    color: var(--ih-ink) !important;
    margin-bottom: 6px;
}

.ih-auth .ih-subheading {
    color: var(--ih-muted);
    font-size: 15px;
    margin: 0 0 32px;
}

.ih-auth .login-form .pb-13 {
    padding-bottom: 24px !important;
}

.ih-panel p {
    color: var(--ih-muted);
}

/* ---------- Fields ---------- */
.ih-auth .form-group {
    margin-bottom: 18px;
}

.ih-auth .ih-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ih-ink);
    margin-bottom: 8px;
}

.ih-auth .ih-field {
    position: relative;
}

.ih-auth .ih-field > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa6b2;
    font-size: 15px;
    pointer-events: none;
    transition: color .2s;
}

.ih-auth .form-control {
    height: 52px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-family: var(--ih-font-body);
    color: var(--ih-ink);
    background: var(--ih-field) !important;
    border: 1.5px solid var(--ih-line) !important;
    border-radius: var(--ih-radius) !important;
    box-shadow: none !important;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.ih-auth .ih-field .form-control {
    padding-left: 46px !important;
}

.ih-auth .ih-field--toggle .form-control {
    padding-right: 48px !important;
}

.ih-auth .form-control::placeholder {
    color: #a3adb8;
}

.ih-auth .form-control:focus {
    background: #fff !important;
    border-color: var(--ih-blue) !important;
    box-shadow: 0 0 0 4px rgba(45, 132, 168, .14) !important;
}

.ih-auth .ih-field:focus-within > i {
    color: var(--ih-blue);
}

.ih-auth .ih-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a96a3;
    cursor: pointer;
}

.ih-auth .ih-toggle:hover,
.ih-auth .ih-toggle:focus {
    color: var(--ih-blue);
    background: rgba(45, 132, 168, .08);
    outline: none;
}

.ih-auth label.error,
.ih-auth .invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #d64545;
}

.ih-auth .form-control.error {
    border-color: #e6a1a1 !important;
}

/* ---------- Remember / forgot row ---------- */
.ih-auth .ih-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 24px;
    font-size: 14px;
}

.ih-auth .ih-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    color: var(--ih-ink);
    font-weight: 600;
}

.ih-auth .ih-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--ih-blue);
    cursor: pointer;
}

.ih-auth a {
    color: var(--ih-blue);
}

.ih-auth a:hover {
    color: var(--ih-blue-hover);
    text-decoration: none;
}

.ih-auth .ih-link {
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.ih-auth .btn {
    border-radius: var(--ih-radius) !important;
    font-family: var(--ih-font-title);
    font-weight: 700 !important;
    transition: transform .15s, box-shadow .2s, background-color .2s;
}

.ih-auth .btn-primary {
    background: linear-gradient(135deg, var(--ih-blue) 0%, var(--ih-navy) 100%) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(8, 53, 72, .22);
}

.ih-auth .btn-primary:hover,
.ih-auth .btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(8, 53, 72, .3);
}

.ih-auth .btn-primary:active {
    transform: translateY(0);
}

.ih-auth .btn-light-primary {
    background: rgba(45, 132, 168, .1) !important;
    color: var(--ih-blue) !important;
    border: 0 !important;
}

.ih-auth .ih-submit {
    width: 100%;
    height: 54px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ih-auth .ih-submit i {
    transition: transform .2s;
}

.ih-auth .ih-submit:hover i {
    transform: translateX(4px);
}

/* ---------- Misc ---------- */
.ih-auth .alert {
    border-radius: var(--ih-radius);
}

.ih-auth .ih-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 16px;
    color: var(--ih-muted);
    font-size: 13px;
}

.ih-auth .ih-divider::before,
.ih-auth .ih-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ih-line);
}

.ih-auth .ih-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--ih-muted);
}

.ih-auth .ih-secure i {
    color: #3a9b6a;
}

.ih-auth .ih-extra {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--ih-muted);
}

.ih-auth .language-switch-area {
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    opacity: .75;
}

.ih-auth .language-switch-area:hover {
    opacity: 1;
}

@keyframes ih-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ih-hero__body, .ih-panel__inner { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ih-hero { padding: 40px; }
    .ih-hero__title { font-size: 36px; }
    .ih-panel { flex-basis: 460px; }
}

@media (max-width: 991px) {
    .ih-auth { flex-direction: column; }
    .ih-hero { display: none; }
    .ih-panel { flex: 1 0 auto; width: 100%; box-shadow: none; }
    .ih-panel__mobile-logo { display: block; }
    body.ih-auth-body {
        background:
            linear-gradient(180deg, rgba(8, 53, 72, .06), rgba(8, 53, 72, 0) 240px),
            var(--ih-panel);
    }
}

@media (max-width: 480px) {
    .ih-panel__inner { padding: 32px 16px; }
    .ih-auth .login-form h3, .ih-auth .ih-heading { font-size: 26px !important; }
    .ih-panel__foot { flex-direction: column; padding: 16px; text-align: center; }
}
