
/* Keep the account-recovery header visually aligned with the invitation/registration banner. */
.craftgrid-recovery-layout .cg-auth-header {
    min-height: 96px;
    background: linear-gradient(112deg, #0B2439 0%, #103B55 58%, #174B69 100%);
    box-shadow: 0 5px 22px rgba(8, 31, 51, .12);
}
.craftgrid-recovery-layout .cg-auth-header::after {
    width: 520px;
    height: 270px;
    right: 17%;
    top: -176px;
    background: rgba(181, 226, 244, .09);
}
.craftgrid-recovery-layout .cg-auth-header-inner { min-height: 96px; }
.craftgrid-recovery-layout .cg-auth-brand-copy strong span { color: #fff; }
.craftgrid-recovery-layout .cg-auth-brand-copy strong em { color: #19b681; font-style: normal; }
.craftgrid-recovery-layout .cg-auth-header-tagline i { background: #E9B33A; }

@media (max-width: 700px) {
    .craftgrid-recovery-layout .cg-auth-header,
    .craftgrid-recovery-layout .cg-auth-header-inner { min-height: 78px; }
    .craftgrid-recovery-layout .cg-auth-header-inner { padding: 0 20px; }
    .craftgrid-recovery-layout .cg-auth-brand-copy strong { font-size: 1.65rem; }
}


/* CraftGrid One account-recovery screens: shared colors and type scale */
.cg-recovery-page {
    --cg-recovery-ink: #102d49;
    --cg-recovery-muted: #6e8397;
    --cg-recovery-blue: #1769c2;
    --cg-recovery-blue-dark: #10549f;
    --cg-recovery-green: #087f68;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 116px);
    width: 100%;
    padding: clamp(24px, 4vw, 50px) 16px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 8% 10%, rgba(75, 160, 230, .15), transparent 34%),
        radial-gradient(ellipse at 94% 88%, rgba(39, 190, 148, .13), transparent 30%),
        linear-gradient(135deg, #f0f6fc 0%, #f8fbfe 55%, #edf8f7 100%);
    color: var(--cg-recovery-ink);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.cg-recovery-page::before,
.cg-recovery-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(23,105,194,.10);
    border-radius: 50%;
}
.cg-recovery-page::before { width: 360px; height: 360px; top: -230px; left: -120px; box-shadow: 0 0 0 26px rgba(23,105,194,.025), 0 0 0 55px rgba(23,105,194,.018); }
.cg-recovery-page::after { width: 290px; height: 290px; right: -155px; bottom: -175px; border-color: rgba(8,127,104,.12); box-shadow: 0 0 0 24px rgba(8,127,104,.025); }
.cg-recovery-card {
    position: relative;
    width: min(500px, 100%);
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid #dce7f0;
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 22px 60px rgba(16,45,73,.11), 0 2px 8px rgba(16,45,73,.035);
}
.cg-recovery-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, #1769c2, #13b88b);
}
.cg-recovery-brand { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 28px; }
.cg-recovery-logo { display: grid; grid-template-columns: repeat(3, 7px); grid-template-rows: repeat(3, 7px); gap: 3px; flex: 0 0 auto; padding: 7px; border-radius: 11px; background: #12385a; box-shadow: 0 5px 14px rgba(16,45,73,.14); }
.cg-recovery-logo i { display: block; border-radius: 2px; background: #f3c43f; }
.cg-recovery-logo i:nth-child(5) { background: #24ce9d; }
.cg-recovery-brand > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.cg-recovery-brand strong { color: #123451; font-size: 19px; line-height: 1; font-weight: 850; letter-spacing: -.045em; }
.cg-recovery-brand strong em { color: #1769c2; font-style: normal; }
.cg-recovery-brand small { color: #8295a6; font-size: 7px; letter-spacing: .19em; font-weight: 850; }
.cg-recovery-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; border: 1px solid transparent; border-radius: 18px; font-size: 25px; }
.cg-recovery-icon-blue { color: #1769c2; border-color: #d6e9fc; background: linear-gradient(145deg, #edf6ff, #e4f0ff); box-shadow: 0 8px 20px rgba(23,105,194,.09); }
.cg-recovery-icon-success { color: #087f68; border-color: #cfeee3; background: linear-gradient(145deg, #eafaf3, #dcf6eb); box-shadow: 0 8px 20px rgba(8,127,104,.08); }
.cg-recovery-eyebrow { margin-bottom: 8px; color: #087f68; text-align: center; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.cg-recovery-card h1 { margin: 0; color: #102d49; text-align: center; font-size: clamp(25px, 3vw, 30px); line-height: 1.16; font-weight: 850; letter-spacing: -.045em; }
.cg-recovery-subtitle { max-width: 380px; margin: 12px auto 25px; color: #6e8397; text-align: center; font-size: 13px; line-height: 1.7; }
.cg-recovery-form { margin: 0; }
.cg-recovery-alert { margin: 0 0 13px; border-radius: 10px; font-size: 12px; }
.cg-recovery-field { margin-bottom: 19px; }
.cg-recovery-field label { display: block; margin: 0 0 7px; color: #29465e; font-size: 12px; font-weight: 800; }
.cg-recovery-input-wrap { display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 0 13px; border: 1px solid #d5e2ec; border-radius: 12px; background: #f9fbfd; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.cg-recovery-input-wrap > i { flex: 0 0 auto; color: #4284bf; font-size: 16px; }
.cg-recovery-input.form-control { min-width: 0; min-height: 46px; padding: 8px 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: #173b53; font-family: inherit; font-size: 13px; }
.cg-recovery-input.form-control::placeholder { color: #9aaaba; }
.cg-recovery-input-wrap:focus-within { border-color: #4592d4; background: #fff; box-shadow: 0 0 0 4px rgba(23,105,194,.11); }
.cg-recovery-validation { display: block; margin-top: 5px; color: #b42318; font-size: 11px; }
.cg-recovery-hint { display: block; margin-top: 7px; color: #8a9aaa; font-size: 10px; line-height: 1.45; }
.cg-recovery-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid #1769c2;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(105deg, #1769c2 0%, #126a9b 58%, #087f82 100%);
    box-shadow: 0 9px 20px rgba(23,105,194,.18);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
    cursor: pointer;
}
.cg-recovery-submit > span { flex: 1; text-align: center; padding-left: 25px; }
.cg-recovery-submit > i { flex: 0 0 auto; font-size: 17px; }
.cg-recovery-submit:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(23,105,194,.22); }
.cg-recovery-submit:focus-visible, .cg-recovery-back:focus-visible { outline: 3px solid rgba(23,105,194,.27); outline-offset: 3px; }
.cg-recovery-divider { display: flex; align-items: center; gap: 12px; margin: 21px 0 14px; color: #91a0af; font-size: 10px; text-align: center; }
.cg-recovery-divider::before, .cg-recovery-divider::after { content: ""; flex: 1; height: 1px; background: #e6edf3; }
.cg-recovery-back { display: flex; align-items: center; justify-content: center; gap: 8px; color: #1769c2; font-size: 12px; font-weight: 800; text-decoration: none; }
.cg-recovery-back:hover { color: #0d4f98; text-decoration: underline; }
.cg-recovery-security { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 12px; border: 1px solid #dcebf5; border-radius: 12px; background: #f3f9fd; }
.cg-recovery-security-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #087f68; background: #e1f6ed; font-size: 14px; }
.cg-recovery-security > span:last-child { display: block; padding-top: 1px; }
.cg-recovery-security strong { display: block; color: #294e66; font-size: 10px; line-height: 1.4; font-weight: 850; }
.cg-recovery-security small { display: block; margin-top: 3px; color: #788e9f; font-size: 10px; line-height: 1.5; }
.cg-recovery-expiry { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 19px; padding: 13px 14px; border: 1px solid #dcebf5; border-radius: 12px; color: #58758b; background: #f4f9fd; font-size: 11px; line-height: 1.55; }
.cg-recovery-expiry > i { margin-top: 1px; color: #1769c2; font-size: 16px; }
.cg-recovery-expiry strong { color: #234962; }
.cg-recovery-submit-link { box-sizing: border-box; }
.cg-recovery-card-confirmation .cg-recovery-subtitle { margin-bottom: 20px; }
.cg-recovery-card-confirmation .cg-recovery-security { margin-top: 22px; }
@media (max-width: 700px) {
    .cg-recovery-page { min-height: calc(100vh - 82px); padding: 24px 13px; }
    .cg-recovery-card { border-radius: 20px; padding: 25px 19px; }
    .cg-recovery-brand { margin-bottom: 24px; }
    .cg-recovery-card h1 { font-size: 25px; }
    .cg-recovery-subtitle { font-size: 12px; margin-bottom: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .cg-recovery-input-wrap, .cg-recovery-submit { transition: none; }
}
