.auth-login-page {
    --auth-ink: #17211e;
    --auth-muted: #65736d;
    --auth-line: #d9e2de;
    --auth-green: #087a65;
    --auth-green-dark: #075f50;
    --auth-green-soft: #e5f3ee;
    --auth-coral: #e65b47;
    min-height: 100vh;
    background: #f4f7f5 !important;
    color: var(--auth-ink);
    letter-spacing: 0;
}

.auth-login-page .auth-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 76px;
    padding: 0 !important;
    background: rgba(12, 46, 41, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.auth-login-page .auth-header .navigation,
.auth-login-page .auth-header .container,
.auth-login-page .auth-header .row {
    height: 100%;
}

.auth-login-page .auth-header .container {
    width: min(100% - 48px, 1420px);
    max-width: 1420px;
}

.auth-login-page .auth-header .row {
    align-items: center;
}

.auth-login-page .auth-header .logo-branding {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.auth-login-page .auth-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
}

.auth-login-page .auth-header .navbar-brand img {
    display: block !important;
    width: auto;
    max-width: 172px;
    height: 35px;
    margin: 0 !important;
    object-fit: contain;
}

.auth-login-page .auth-header .navbar-brand.d-block {
    display: none !important;
}

.auth-login-page .auth-header .login-btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 !important;
}

.auth-login-page .auth-header .login-btns .btn {
    min-height: 40px;
    padding: 9px 16px;
    background: transparent !important;
    color: #e8f3ef !important;
    border: 1px solid transparent !important;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
}

.auth-login-page .auth-header .login-btns .btn:not(.active) {
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.auth-login-page .auth-header .login-btns .btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
}

.auth-login-page .auth-header .login-btns .btn.active {
    background: var(--auth-coral) !important;
    color: #ffffff !important;
    border-color: var(--auth-coral) !important;
}

.auth-login-page .auth-login-main {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
    min-height: 100vh;
    padding-top: 76px;
}

.auth-login-page .auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    background-color: #102b28;
    background-image: url("../images/ironhand-community-green-coral.webp");
    background-position: center center;
    background-size: cover;
}

.auth-login-page .auth-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(5, 25, 23, 0.34);
}

.auth-login-page .auth-visual-copy {
    position: relative;
    z-index: 1;
    width: min(100% - 80px, 660px);
    margin: 0 40px 74px;
    color: #ffffff;
}

.auth-login-page .auth-eyebrow {
    margin: 0 0 10px;
    color: var(--auth-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-login-page .auth-visual .auth-eyebrow {
    color: #9ae0cc;
}

.auth-login-page .auth-visual h1 {
    max-width: 620px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.32);
}

.auth-login-page .auth-visual-copy > p:last-child {
    max-width: 540px;
    margin: 0;
    color: #eaf3f0;
    font-size: 17px;
    line-height: 1.55;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.auth-login-page .auth-visual-caption {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 650;
}

.auth-login-page .auth-visual-caption i {
    color: #f07562;
}

.auth-login-page .auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 54px;
    background: #ffffff;
}

.auth-login-page .auth-form-wrap {
    width: min(100%, 430px);
}

.auth-login-page .auth-form-heading {
    margin-bottom: 32px;
}

.auth-login-page .auth-form-heading h2 {
    margin: 0 0 10px;
    color: var(--auth-ink);
    font-size: 31px;
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: 0;
}

.auth-login-page .auth-form-heading > p:last-child {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-login-page .alert {
    margin-bottom: 22px;
    padding: 14px 42px 14px 14px;
    border: 1px solid #edc973;
    border-radius: 7px;
    font-size: 13px;
}

.auth-login-page .auth-field {
    margin-bottom: 20px;
}

.auth-login-page .auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #34413d;
    font-size: 13px;
    font-weight: 750;
}

.auth-login-page .auth-input-wrap {
    position: relative;
}

.auth-login-page .auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: #77837e;
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-login-page .auth-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 43px;
    background: #f2f5f3 !important;
    color: var(--auth-ink) !important;
    border: 1px solid transparent !important;
    border-radius: 7px;
    outline: 0;
    font-size: 14px;
}

.auth-login-page .auth-input-wrap input::placeholder {
    color: #89948f;
}

.auth-login-page .auth-input-wrap input:focus {
    background: #ffffff !important;
    border-color: var(--auth-green) !important;
    box-shadow: 0 0 0 3px rgba(8, 122, 101, 0.12);
}

.auth-login-page .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #6f7d77;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.auth-login-page .auth-password-toggle:hover {
    background: var(--auth-green-soft);
    color: var(--auth-green-dark);
}

.auth-login-page .auth-error {
    margin: 7px 0 0;
    color: #c53d2b;
    font-size: 12px;
}

.auth-login-page .auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 24px;
}

.auth-login-page .auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #4e5d57;
    font-size: 13px;
    cursor: pointer;
}

.auth-login-page .auth-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    accent-color: var(--auth-green);
}

.auth-login-page .auth-form-options a,
.auth-login-page .auth-form-footer a {
    color: var(--auth-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auth-login-page .auth-form-options a:hover,
.auth-login-page .auth-form-footer a:hover {
    text-decoration: underline;
}

.auth-login-page .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    background: var(--auth-green);
    color: #ffffff;
    border: 1px solid var(--auth-green);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 760;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.auth-login-page .auth-submit:hover {
    background: var(--auth-green-dark);
    border-color: var(--auth-green-dark);
}

.auth-login-page .auth-form-footer {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--auth-line);
}

.auth-login-page .auth-form-footer p {
    margin: 0 0 16px;
    color: var(--auth-muted);
    font-size: 13px;
}

.auth-login-page .auth-form-footer nav {
    display: flex;
    gap: 18px;
}

.auth-login-page .auth-form-footer nav a {
    color: #79847f;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .auth-login-page .auth-login-main {
        grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    }

    .auth-login-page .auth-visual-copy {
        width: min(100% - 48px, 560px);
        margin: 0 24px 54px;
    }

    .auth-login-page .auth-visual h1 {
        font-size: 38px;
    }

    .auth-login-page .auth-visual-caption {
        display: none;
    }

    .auth-login-page .auth-form-panel {
        padding: 40px;
    }
}

@media (max-width: 767.98px) {
    .auth-login-page .auth-header {
        position: absolute;
        height: 68px;
    }

    .auth-login-page .auth-header .container {
        width: calc(100% - 28px);
    }

    .auth-login-page .auth-header .navbar-brand img {
        max-width: 145px;
        height: 30px;
    }

    .auth-login-page .auth-header .login-btns .btn {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .auth-login-page .auth-login-main {
        display: block;
        min-height: 100vh;
        padding-top: 0;
    }

    .auth-login-page .auth-visual {
        align-items: flex-end;
        min-height: 330px;
        padding-top: 68px;
        background-position: 62% center;
    }

    .auth-login-page .auth-visual-copy {
        width: min(100% - 40px, 520px);
        margin: 0 20px 28px;
    }

    .auth-login-page .auth-visual h1 {
        max-width: 420px;
        margin-bottom: 9px;
        font-size: 31px;
    }

    .auth-login-page .auth-visual-copy > p:last-child {
        max-width: 420px;
        font-size: 14px;
    }

    .auth-login-page .auth-form-panel {
        min-height: calc(100vh - 330px);
        padding: 38px 24px 34px;
    }

    .auth-login-page .auth-form-wrap {
        width: min(100%, 480px);
    }
}

@media (max-width: 479.98px) {
    .auth-login-page .auth-header .row > div:last-child {
        display: none;
    }

    .auth-login-page .auth-header .navbar-brand.d-xs-hidden {
        display: inline-flex !important;
    }

    .auth-login-page .auth-visual {
        min-height: 300px;
    }

    .auth-login-page .auth-visual::before {
        background: rgba(5, 25, 23, 0.48);
    }

    .auth-login-page .auth-visual-copy {
        width: calc(100% - 32px);
        margin: 0 16px 22px;
    }

    .auth-login-page .auth-visual h1 {
        font-size: 28px;
    }

    .auth-login-page .auth-visual-copy > p:last-child {
        line-height: 1.45;
    }

    .auth-login-page .auth-form-panel {
        min-height: calc(100vh - 300px);
        padding: 32px 18px;
    }

    .auth-login-page .auth-form-heading {
        margin-bottom: 26px;
    }

    .auth-login-page .auth-form-heading h2 {
        font-size: 26px;
    }

    .auth-login-page .auth-form-options {
        align-items: flex-start;
        gap: 12px;
    }
}

/* Shared account flows: register, reset, verification, and confirmation. */
.auth-platform-page:not(.auth-login-page) {
    --auth-ink: #17211e;
    --auth-muted: #65736d;
    --auth-line: #d9e2de;
    --auth-green: #087a65;
    --auth-green-dark: #075f50;
    --auth-green-soft: #e5f3ee;
    --auth-coral: #e65b47;
    min-height: 100vh;
    background: #f3f6f4 !important;
    color: var(--auth-ink);
}

.auth-platform-page:not(.auth-login-page) .auth-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: 76px;
    padding: 0 !important;
    background: rgba(12, 46, 41, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.auth-platform-page:not(.auth-login-page) .auth-header .navigation,
.auth-platform-page:not(.auth-login-page) .auth-header .container,
.auth-platform-page:not(.auth-login-page) .auth-header .row {
    height: 100%;
}

.auth-platform-page:not(.auth-login-page) .auth-header .container {
    width: min(100% - 48px, 1420px);
    max-width: 1420px;
}

.auth-platform-page:not(.auth-login-page) .auth-header .row {
    align-items: center;
}

.auth-platform-page:not(.auth-login-page) .auth-header .navbar-brand img {
    display: block;
    width: auto;
    max-width: 172px;
    height: 35px;
    object-fit: contain;
}

.auth-platform-page:not(.auth-login-page) .auth-header .navbar-brand.d-block {
    display: none !important;
}

.auth-platform-page:not(.auth-login-page) .auth-header .login-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 !important;
}

.auth-platform-page:not(.auth-login-page) .auth-header .login-btns .btn {
    min-height: 40px;
    padding: 9px 16px;
    background: transparent !important;
    color: #e8f3ef !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.auth-platform-page:not(.auth-login-page) .auth-header .login-btns .btn.active {
    background: var(--auth-coral) !important;
    border-color: var(--auth-coral) !important;
}

.auth-platform-page:not(.auth-login-page) > .main {
    min-height: 100vh;
    margin: 0 !important;
    padding: 116px 24px 48px !important;
}

.auth-platform-page:not(.auth-login-page) > .main > .container {
    max-width: 1100px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(26, 49, 42, 0.1);
}

.auth-platform-page:not(.auth-login-page) > .main > .container > .row {
    min-height: 620px;
    margin: 0;
}

.auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"] {
    padding: 0;
}

.auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"]:first-child {
    position: relative;
    min-height: 420px;
    background-color: #102b28;
    background-image: linear-gradient(rgba(5, 25, 23, 0.18), rgba(5, 25, 23, 0.32)),
        url("../images/ironhand-community-green-coral.webp");
    background-position: center;
    background-size: cover;
}

.auth-platform-page:not(.auth-login-page) .login-img,
.auth-platform-page:not(.auth-login-page) .login-img img {
    width: 100%;
    height: 100%;
}

.auth-platform-page:not(.auth-login-page) .login-img img {
    visibility: hidden;
    object-fit: cover;
}

.auth-platform-page:not(.auth-login-page) .login-txt,
.auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"]:last-child > form,
.auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"]:last-child > div {
    width: min(100%, 480px);
    margin: 0 auto !important;
    padding: 52px 46px;
}

.auth-platform-page:not(.auth-login-page) .login-txt h3,
.auth-platform-page:not(.auth-login-page) > .main h1,
.auth-platform-page:not(.auth-login-page) > .main h2,
.auth-platform-page:not(.auth-login-page) > .main h3 {
    margin: 0 0 24px;
    color: var(--auth-ink);
    font-size: 30px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: 0;
}

.auth-platform-page:not(.auth-login-page) .form-group {
    margin-bottom: 17px;
}

.auth-platform-page:not(.auth-login-page) label {
    display: block;
    margin-bottom: 7px;
    color: #34413d;
    font-size: 13px;
    font-weight: 700;
}

.auth-platform-page:not(.auth-login-page) input:not([type="checkbox"]):not([type="hidden"]),
.auth-platform-page:not(.auth-login-page) select,
.auth-platform-page:not(.auth-login-page) textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    background: #f2f5f3 !important;
    color: var(--auth-ink);
    border: 1px solid transparent !important;
    border-radius: 7px;
    outline: 0;
}

.auth-platform-page:not(.auth-login-page) .form-group input {
    padding-left: 43px !important;
}

.auth-platform-page:not(.auth-login-page) input:not([type="checkbox"]):not([type="hidden"]):focus,
.auth-platform-page:not(.auth-login-page) select:focus,
.auth-platform-page:not(.auth-login-page) textarea:focus {
    background: #ffffff !important;
    border-color: var(--auth-green) !important;
    box-shadow: 0 0 0 3px rgba(8, 122, 101, 0.12);
}

.auth-platform-page:not(.auth-login-page) input[type="checkbox"] {
    accent-color: var(--auth-green);
}

.auth-platform-page:not(.auth-login-page) .btn-primary,
.auth-platform-page:not(.auth-login-page) button[type="submit"] {
    min-height: 48px;
    background: var(--auth-green) !important;
    color: #ffffff !important;
    border: 1px solid var(--auth-green) !important;
    border-radius: 7px !important;
    font-weight: 750;
}

.auth-platform-page:not(.auth-login-page) .btn-primary:hover,
.auth-platform-page:not(.auth-login-page) button[type="submit"]:hover {
    background: var(--auth-green-dark) !important;
    border-color: var(--auth-green-dark) !important;
}

.auth-platform-page:not(.auth-login-page) a {
    color: var(--auth-green);
}

.auth-guest-standalone {
    --auth-ink: #17211e;
    --auth-muted: #65736d;
    --auth-line: #d9e2de;
    --auth-green: #087a65;
    min-height: 100vh;
    margin: 0;
    background: #f3f6f4;
    color: var(--auth-ink);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.auth-guest-header {
    display: flex;
    align-items: center;
    height: 76px;
    padding: 0 max(24px, calc((100% - 1420px) / 2));
    background: #0c2e29;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-guest-header img {
    width: auto;
    height: 35px;
}

.auth-guest-main {
    display: grid;
    min-height: calc(100vh - 76px);
    place-items: center;
    padding: 48px 20px;
}

.auth-guest-main > div {
    width: min(100%, 460px);
}

.auth-guest-main > div > div:first-child {
    display: none;
}

.auth-guest-main > div > div:last-child {
    padding: 34px !important;
    background: #ffffff !important;
    border: 1px solid var(--auth-line);
    border-radius: 8px !important;
    box-shadow: 0 18px 50px rgba(26, 49, 42, 0.1) !important;
}

.auth-guest-main input {
    width: 100%;
    min-height: 48px;
    background: #f2f5f3;
    border: 1px solid transparent;
    border-radius: 7px;
}

.auth-guest-main button {
    min-height: 44px;
    background: var(--auth-green) !important;
    border-radius: 7px !important;
}

@media (max-width: 767.98px) {
    .auth-platform-page:not(.auth-login-page) .auth-header {
        height: 68px;
    }

    .auth-platform-page:not(.auth-login-page) .auth-header .container {
        width: calc(100% - 28px);
    }

    .auth-platform-page:not(.auth-login-page) .auth-header .navbar-brand img {
        max-width: 145px;
        height: 30px;
    }

    .auth-platform-page:not(.auth-login-page) > .main {
        padding: 92px 14px 28px !important;
    }

    .auth-platform-page:not(.auth-login-page) > .main > .container > .row {
        display: block;
        min-height: 0;
    }

    .auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"]:first-child {
        min-height: 240px;
    }

    .auth-platform-page:not(.auth-login-page) .login-txt,
    .auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"]:last-child > form,
    .auth-platform-page:not(.auth-login-page) > .main > .container > .row > [class*="col-"]:last-child > div {
        padding: 34px 24px;
    }
}

@media (max-width: 479.98px) {
    .auth-platform-page:not(.auth-login-page) .auth-header .navbar-brand.d-xs-hidden {
        display: inline-flex !important;
    }

    .auth-platform-page:not(.auth-login-page) .auth-header .navbar-brand img {
        max-width: 125px;
        height: 28px;
    }

    .auth-platform-page:not(.auth-login-page) .auth-header .login-btns {
        gap: 7px;
    }

    .auth-platform-page:not(.auth-login-page) .auth-header .login-btns .btn {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }
}
