.twp-wf-login-page,
.twp-wf-login-page * { box-sizing: border-box; }

.twp-wf-login-page {
    --wf-navy: #173b61;
    --wf-navy-deep: #102a47;
    --wf-blue: #1769e0;
    --wf-border: #d7dee8;
    --wf-muted: #617089;
    --wf-bg: #eef4f9;
    width: 100%;
    min-height: min(900px, 100vh);
    padding: 42px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgba(255,255,255,.9), transparent 28%),
        radial-gradient(circle at 87% 80%, rgba(205,224,239,.75), transparent 32%),
        linear-gradient(135deg, #e8f0f7 0%, #f8fbfd 48%, #eaf2f8 100%);
    font-family: Avenir Next, Avenir, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17212b;
}

.twp-wf-login-shell {
    width: min(1145px, 100%);
    min-height: 670px;
    display: grid;
    grid-template-columns: 42% 58%;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 75px rgba(31, 55, 79, .18), 0 6px 20px rgba(31, 55, 79, .08);
    position: relative;
    z-index: 2;
}

.twp-wf-login-brand {
    position: relative;
    overflow: hidden;
    min-height: 670px;
    isolation: isolate;
    background: linear-gradient(180deg, #1f5b8c 0%, #2c6c9f 38%, #173c61 100%);
    color: #fff;
}

.twp-wf-login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 78% 68%, rgba(255, 214, 119, .72) 0 5%, transparent 5.5%),
        linear-gradient(165deg, rgba(255,255,255,.1), transparent 42%);
}

.twp-wf-login-brand::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -270px;
    top: -245px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    z-index: -3;
}

.twp-wf-brand-content {
    position: relative;
    z-index: 5;
    padding: 72px 70px 58px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.twp-wf-brand-mark { width: 54px; height: 42px; margin-bottom: 13px; }
.twp-wf-brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.twp-wf-brand-name { font-size:clamp(37px, 4vw, 49px); line-height: .98; font-weight: 650; letter-spacing: -.045em; }
.twp-wf-brand-subtitle { margin-top: 19px; font-size:14px; letter-spacing: .22em; opacity: .78; font-weight: 500; }
.twp-wf-brand-rule { width: 72px; height: 1px; background: rgba(255,255,255,.65); margin: 28px 0 25px; }
.twp-wf-brand-message { display: flex; flex-direction: column; gap: 1px; font-size:clamp(26px, 2.8vw, 37px); line-height: 1.15; font-weight: 350; letter-spacing: -.035em; }
.twp-wf-brand-bottom { margin-top: auto; padding-top: 55px; font-size:18px; line-height: 1.55; letter-spacing: .01em; color: rgba(255,255,255,.91); }

.twp-wf-mountain { position: absolute; left: -12%; width: 125%; transform: rotate(-1deg); z-index: -2; }
.twp-wf-mountain-back { bottom: 170px; height: 180px; background: #466f8d; clip-path: polygon(0 75%, 14% 48%, 25% 67%, 42% 24%, 55% 57%, 67% 35%, 80% 63%, 91% 39%, 100% 61%, 100% 100%, 0 100%); opacity: .78; }
.twp-wf-mountain-mid { bottom: 65px; height: 190px; background: #294f70; clip-path: polygon(0 72%, 16% 34%, 31% 69%, 47% 25%, 59% 63%, 75% 29%, 87% 66%, 100% 45%, 100% 100%, 0 100%); }
.twp-wf-mountain-front { bottom: -12px; height: 185px; background: #183c5d; clip-path: polygon(0 67%, 20% 40%, 34% 68%, 49% 35%, 64% 74%, 79% 42%, 100% 69%, 100% 100%, 0 100%); }
.twp-wf-sun { position: absolute; width: 46px; height: 46px; right: 18%; bottom: 202px; border-radius: 50%; background: #ffd978; box-shadow: 0 0 32px rgba(255, 213, 120, .45); z-index: -1; }

.twp-wf-login-panel { background: #fff; display: flex; align-items: center; }
.twp-wf-login-inner { width: min(535px, 100%); margin: 0 auto; padding: 58px 72px 54px; }
.twp-wf-login-kicker { font-size:17px; font-weight: 600; color: #52627a; letter-spacing: .12em; margin-bottom: 15px; }
.twp-wf-login-inner h1 { margin: 0; color: #102b4a; font-size: clamp(38px, 4vw, 48px); line-height: 1.08; letter-spacing: -.045em; font-weight: 720; }
.twp-wf-login-intro { margin: 18px 0 34px; max-width: 490px; color: #60708a; font-size:18px; line-height: 1.65; }

.twp-wf-login-alert { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px 14px; margin: -12px 0 20px; font-size:14px; line-height: 1.4; }
.twp-wf-login-alert-error { color: #8b2531; background: #fff1f2; border: 1px solid #ffd2d6; }
.twp-wf-login-alert-success { color: #146a43; background: #ecfbf3; border: 1px solid #c9efdb; }
.twp-wf-alert-icon { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #b83342; color: #fff; font-weight: 700; flex: 0 0 auto; }

.twp-wf-login-form { display: flex; flex-direction: column; gap: 20px; }
.twp-wf-field { min-height: 63px; position: relative; display: flex; align-items: center; border: 1px solid #d2dae5; border-radius: 10px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.twp-wf-field:focus-within { border-color: #6c9ee5; box-shadow: 0 0 0 4px rgba(23,105,224,.08); }
.twp-wf-field-icon { width: 56px; display: flex; align-items: center; justify-content: center; color: #728097; flex: 0 0 auto; }
.twp-wf-field-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.twp-wf-field input { min-width: 0; width: 100%; height: 61px; border: 0 !important; outline: 0 !important; box-shadow: none !important; padding: 0 17px 0 0; background: transparent !important; color: #17212b; font-size:17px; }
.twp-wf-field input::placeholder { color: #8995a7; opacity: 1; }
.twp-wf-password-toggle { border: 0; background: transparent; padding: 8px 17px 8px 8px; color: #728097; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.twp-wf-password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.twp-wf-eye-off { display: none; }
.twp-wf-password-toggle.is-visible .twp-wf-eye-open { display: none; }
.twp-wf-password-toggle.is-visible .twp-wf-eye-off { display: block; }

.twp-wf-login-options { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: -2px; font-size:15px; }
.twp-wf-remember { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: #182c46; user-select: none; }
.twp-wf-remember input { position: absolute; opacity: 0; pointer-events: none; }
.twp-wf-checkmark { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: #1769e0; color: #fff; font-size:17px; font-weight: 700; line-height: 1; }
.twp-wf-remember input:not(:checked) + .twp-wf-checkmark { background: #fff; border: 1px solid #b9c4d2; color: transparent; }
.twp-wf-forgot { color: #1769e0; text-decoration: none; font-weight: 500; }
.twp-wf-forgot:hover { text-decoration: underline; }

.twp-wf-login-button { min-height: 63px; margin-top: 3px; border: 0; border-radius: 9px; background: #1769e0; color: #fff; font-size:19px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 9px 20px rgba(23,105,224,.18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.twp-wf-login-button:hover { background: #125fcf; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(23,105,224,.23); }
.twp-wf-login-button:active { transform: translateY(0); }
.twp-wf-login-arrow { font-size: 27px; font-weight: 400; line-height: 1; margin-top: -2px; }

.twp-wf-or { display: flex; align-items: center; gap: 16px; color: #8b96a6; margin: 29px 0 25px; font-size:14px; }
.twp-wf-or::before, .twp-wf-or::after { content: ""; height: 1px; background: #dbe1e9; flex: 1; }
.twp-wf-security-note { display: flex; align-items: center; gap: 15px; border-radius: 10px; background: #f4f7fb; padding: 17px 20px; color: #17212b; }
.twp-wf-security-icon { width: 35px; height: 35px; flex: 0 0 auto; color: #00a77b; }
.twp-wf-security-icon svg { width: 100%; height: 100%; fill: currentColor; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.twp-wf-security-note strong, .twp-wf-security-note span { display: block; }
.twp-wf-security-note strong { font-size:14px; line-height: 1.45; }
.twp-wf-security-note span { color: #6d7a8d; font-size:14px; line-height: 1.45; margin-top: 2px; }
.twp-wf-login-footer { position: absolute; bottom: 12px; color: #738297; font-size:13px; z-index: 1; }

.twp-wf-login-page .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

@media (max-width: 980px) {
    .twp-wf-login-page { padding: 24px; }
    .twp-wf-login-shell { grid-template-columns: 1fr; max-width: 600px; min-height: 0; }
    .twp-wf-login-brand { min-height: 330px; }
    .twp-wf-brand-content { padding: 42px 45px 40px; }
    .twp-wf-brand-message { font-size:31px; }
    .twp-wf-brand-bottom { padding-top: 30px; font-size:15px; }
    .twp-wf-login-panel { min-height: 610px; }
    .twp-wf-login-inner { padding: 48px 48px 44px; }
}

@media (max-width: 560px) {
    .twp-wf-login-page { padding: 0; min-height: 100vh; align-items: stretch; }
    .twp-wf-login-shell { border-radius: 0; box-shadow: none; width: 100%; }
    .twp-wf-login-brand { min-height: 275px; }
    .twp-wf-brand-content { padding: 31px 28px 28px; }
    .twp-wf-brand-mark { width: 45px; height: 35px; margin-bottom: 8px; }
    .twp-wf-brand-name { font-size:35px; }
    .twp-wf-brand-subtitle { margin-top: 11px; font-size:11px; letter-spacing: .18em; }
    .twp-wf-brand-rule { margin: 18px 0 16px; }
    .twp-wf-brand-message { font-size:24px; }
    .twp-wf-brand-bottom { display: none; }
    .twp-wf-mountain-back { bottom: 85px; }
    .twp-wf-mountain-mid { bottom: 15px; }
    .twp-wf-mountain-front { bottom: -70px; }
    .twp-wf-sun { bottom: 95px; width: 34px; height: 34px; }
    .twp-wf-login-panel { min-height: 0; align-items: flex-start; }
    .twp-wf-login-inner { padding: 38px 24px 34px; }
    .twp-wf-login-kicker { font-size:14px; margin-bottom: 10px; }
    .twp-wf-login-inner h1 { font-size: 35px; }
    .twp-wf-login-intro { font-size:16px; margin: 14px 0 26px; line-height: 1.55; }
    .twp-wf-field { min-height: 59px; }
    .twp-wf-field input { height: 57px; font-size:16px; }
    .twp-wf-field-icon { width: 50px; }
    .twp-wf-login-options { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .twp-wf-login-button { min-height: 59px; }
    .twp-wf-security-note { padding: 15px; }
    .twp-wf-login-footer { display: none; }
}
