:root {
    --home2-ink: #17302b;
    --home2-muted: #687772;
    --home2-orange: #bd4b16;
    --home2-orange-dark: #87320f;
    --home2-line: #dce6e2;
    --home2-danger: #b42318;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", Arial, sans-serif;
    background: #2d160d;
}

.home2-page, .home2-page * { box-sizing: border-box; }

.home2-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 56px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--home2-ink);
    background-image: var(--home-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home2-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.08), transparent 30%), linear-gradient(120deg, rgba(37,18,9,.38), rgba(75,31,11,.22) 52%, rgba(35,17,9,.34));
}

.home2-card {
    position: relative;
    width: min(1120px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(470px, 1.08fr) minmax(370px, .92fr);
    grid-template-areas: "login brand";
    align-items: center;
}

.home2-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 0;
    right: 0;
    height: 470px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 24px;
    background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.13), transparent 31%), linear-gradient(135deg, rgba(211,80,20,.94), rgba(145,47,11,.90));
    box-shadow: 0 24px 64px rgba(45,18,7,.26);
}

.home2-brand {
    position: relative;
    z-index: 1;
    grid-area: brand;
    min-height: 470px;
    padding: 22px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: transparent;
}

.home2-brand::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -185px;
    bottom: -155px;
    border: 44px solid rgba(255,255,255,.055);
    border-radius: 50%;
}

.home2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}

.home2-logo-wrap {
    width: 112px;
    height: 112px;
    margin: 18px auto 14px;
    padding: 12px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(54,20,6,.24);
}

.home2-logo { width: 100%; height: 100%; object-fit: contain; }

.home2-university {
    max-width: 360px;
    margin: 0 auto 6px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.home2-brand h1 {
    max-width: 390px;
    margin: 0 auto;
    color: #fff;
    font-family: "Lora", Georgia, serif;
    font-size: clamp(29px, 2.7vw, 39px);
    font-weight: 700;
    line-height: 1.12;
}

.home2-lead {
    max-width: 360px;
    margin: 12px auto 0;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    line-height: 1.7;
    white-space: nowrap;
}

.home2-brand-note {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,.82);
    width: 100%;
    max-width: 380px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
}

.home2-brand-note span { flex: 1; }
.home2-brand-note-line { display: block; }

.home2-brand-note i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.11);
}

.home2-login-panel {
    position: relative;
    z-index: 2;
    grid-area: login;
    min-height: 610px;
    padding: 60px 70px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 34px 70px rgba(30,18,12,.34), 0 8px 22px rgba(30,18,12,.18);
}

.home2-language {
    position: absolute;
    top: 30px;
    right: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border: 1px solid var(--home2-line);
    border-radius: 999px;
    background: #fff;
}

.home2-language a {
    color: var(--home2-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
}

.home2-language a:hover, .home2-language a:focus-visible { color: var(--home2-orange); }
.home2-language span { width: 1px; height: 13px; background: var(--home2-line); }
.home2-form-heading { margin-bottom: 30px; }

.home2-form-heading > p {
    margin: 0 0 6px;
    color: var(--home2-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home2-form-heading h2 {
    margin: 0 0 10px;
    color: var(--home2-ink);
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.home2-form-heading > span:not(.home2-mobile-mark) { color: var(--home2-muted); font-size: 13px; line-height: 1.6; }
.home2-mobile-mark { display: none; }
.home2-form .form-group { margin-bottom: 17px; }

.home2-form label {
    margin-bottom: 7px;
    color: var(--home2-ink);
    font-size: 12px;
    font-weight: 700;
}

.home2-field { position: relative; }

.home2-field > i {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #8aa099;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.home2-form input[type="text"], .home2-form input[type="email"], .home2-form input[type="password"] {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 45px;
    border: 1px solid var(--home2-line);
    border-radius: 13px;
    outline: none;
    background: #f9fbfa;
    color: var(--home2-ink);
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.home2-form input:focus { border-color: var(--home2-orange); background: #fff; box-shadow: 0 0 0 4px rgba(189,75,22,.11); }
.home2-form input.is-invalid { border-color: var(--home2-danger); background-image: none; }

.home2-email-feedback {
    display: none;
    margin: -7px 0 14px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    background: #fff1f0;
    color: var(--home2-danger);
    font-size: 11px;
}

.home2-email-feedback.is-visible { display: block; }
.home2-form .alert-danger, .home2-form .invalid-feedback { color: var(--home2-danger); font-size: 11px; }
.home2-captcha { margin: 3px 0 18px; }
.home2-captcha label { display: block; }

.home2-server-error {
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff1f0;
    color: var(--home2-danger);
    font-size: 12px;
    font-weight: 600;
}

.home2-submit {
    width: 100%;
    height: 52px;
    margin-top: 2px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 13px;
    background: var(--home2-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(189,75,22,.22);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.home2-submit:hover, .home2-submit:focus-visible { transform: translateY(-1px); background: var(--home2-orange-dark); box-shadow: 0 15px 28px rgba(189,75,22,.29); }
.home2-submit:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.home2-forgot {
    display: block;
    width: max-content;
    margin: 17px auto 0;
    color: var(--home2-orange);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.home2-forgot:hover, .home2-forgot:focus-visible { color: var(--home2-orange-dark); text-decoration: underline; }

.home2-impact {
    margin-top: 17px;
    padding: 17px;
    border: 1px solid #cfe8d8;
    border-radius: 17px;
    background: linear-gradient(145deg, #f3fbf6, #eaf7ef);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 26px rgba(30,105,61,.07);
}

.home2-impact-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home2-impact-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #25864d;
    color: #fff;
    box-shadow: 0 7px 16px rgba(37,134,77,.2);
}

.home2-impact-heading > span:last-child { min-width: 0; }

.home2-impact-heading strong,
.home2-impact-heading small { display: block; }

.home2-impact-heading strong {
    color: #1b6639;
    font-size: 15px;
    line-height: 1.3;
}

.home2-impact-heading small {
    margin-top: 3px;
    color: #6d8375;
    font-size: 11px;
    font-weight: 600;
}

.home2-impact-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home2-impact-item {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid rgba(46,135,80,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.72);
}

.home2-impact-item strong {
    display: block;
    color: #18733e;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}

.home2-impact-item span {
    display: block;
    margin-top: 5px;
    color: #577064;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.home2-impact-item .home2-co2-index {
    display: inline;
    margin: 0;
    position: relative;
    top: .18em;
    color: inherit;
    font-size: .95em;
    font-weight: 800;
    line-height: 1;
}

.home2-impact-footer {
    margin-top: 11px;
    padding-top: 11px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(46,135,80,.14);
}

.home2-impact-footer > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 10px;
    background: linear-gradient(135deg, #218b4e, #146f3b);
    box-shadow: 0 7px 16px rgba(20,111,59,.2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home2-impact-footer > a:hover, .home2-impact-footer > a:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #187c43, #0f5e32);
    box-shadow: 0 10px 20px rgba(20,111,59,.26);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1080px) and (min-width: 821px) {
    .home2-card { grid-template-columns: minmax(440px, 1.08fr) minmax(320px, .92fr); }
    .home2-login-panel { padding: 56px 48px 28px; }
    .home2-brand { padding: 20px 18px; }
    .home2-logo-wrap { width: 104px; height: 104px; margin-top: 16px; }
    .home2-brand h1 { font-size: 30px; }
    .home2-eyebrow { font-size: 9px; }
}

@media (max-width: 820px) {
    .home2-page { justify-content: safe center; padding: 28px 18px 24px; }
    .home2-card {
        min-height: auto;
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "login";
        align-items: stretch;
    }
    .home2-card::before { display: none; }
    .home2-brand {
        min-height: 176px;
        padding: 30px clamp(20px, 4vw, 34px) 48px;
        border-radius: 24px 24px 0 0;
        background: radial-gradient(circle at 100% 0, rgba(255,255,255,.14), transparent 34%), linear-gradient(145deg, var(--home2-orange), var(--home2-orange-dark));
    }
    .home2-brand-top {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: clamp(12px, 3vw, 22px);
        row-gap: 4px;
    }
    .home2-eyebrow, .home2-lead { display: none; }
    .home2-brand-note {
        width: fit-content;
        max-width: min(520px, 100%);
        margin-top: 16px;
        display: flex;
        justify-content: center;
        font-size: 10px;
        text-align: center;
    }
    .home2-logo-wrap { grid-row: 1 / span 2; align-self: center; width: clamp(68px, 11vw, 82px); height: clamp(68px, 11vw, 82px); margin: 0; padding: 8px; border-radius: 20px; }
    .home2-university { align-self: end; margin: 0; font-size: 12px; }
    .home2-brand h1 { align-self: start; font-size: clamp(22px, 4.5vw, 26px); }
    .home2-login-panel {
        min-height: 540px;
        margin: -22px clamp(8px, 2vw, 16px) 0;
        padding: 54px clamp(24px, 7vw, 54px) 24px;
        border-radius: 22px;
        box-shadow: 0 28px 55px rgba(42,17,7,.28), 0 7px 18px rgba(42,17,7,.14);
    }
    .home2-impact { margin-top: 17px; padding: 14px 10px 12px; }
    .home2-impact-grid { gap: 6px; }
    .home2-impact-item { padding: 10px 4px; }
    .home2-impact-item strong {
        max-width: 100%;
        overflow: hidden;
        font-size: clamp(12px, 3.9vw, 20px);
        letter-spacing: -.055em;
        white-space: nowrap;
    }
    .home2-impact-item > span {
        font-size: 10px;
        line-height: 1.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home2-submit, .home2-form input { transition: none; }
}
