:root {
    --pc-bg: #f3f7fb;
    --pc-card: #ffffff;
    --pc-navy: #0b3558;
    --pc-navy-2: #114d7d;
    --pc-blue: #1577ea;
    --pc-blue-2: #0d65d7;
    --pc-text: #10243b;
    --pc-muted: #6b7d90;
    --pc-line: #dce7f1;
    --pc-soft: #f6f9fc;
    --pc-success: #1e9d63;
    --pc-danger: #d94b4b;
    --pc-radius: 22px;
    --pc-auth-offset: 0px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0 !important;
    background: var(--pc-bg) !important;
    color: var(--pc-text);
}

.postech-login-page {
    width: 100%;
    min-height: calc(100vh - var(--pc-auth-offset, 0px));
    min-height: calc(100dvh - var(--pc-auth-offset, 0px));
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 12%, rgba(21,119,234,.10), transparent 31%),
        radial-gradient(circle at 90% 88%, rgba(11,53,88,.07), transparent 28%),
        var(--pc-bg);
    font-family: inherit;
}

.postech-login-page.is-rtl { direction: rtl; }
.postech-login-page.is-ltr { direction: ltr; }

.postech-login-card {
    width: min(1080px, 100%);
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(500px, 1.18fr);
    overflow: hidden;
    background: var(--pc-card);
    border: 1px solid #d8e4ef;
    border-radius: var(--pc-radius);
    box-shadow: 0 26px 70px rgba(18, 53, 84, .13);
}

.postech-login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 36px 34px 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 115% -10%, rgba(68,163,255,.28), transparent 35%),
        linear-gradient(150deg, #14588d 0%, #0c3e66 48%, #082e4d 100%);
}
.postech-login-brand-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    inset-inline-start: -145px;
    bottom: -125px;
}
.postech-login-brand-panel::after {
    content: "";
    position: absolute;
    width: 155px;
    height: 155px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    inset-inline-start: -70px;
    bottom: -55px;
}

.postech-login-brand-top,
.postech-login-mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
}
.postech-cloud-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2791ff, #0962de);
    box-shadow: 0 8px 20px rgba(0,70,170,.28);
}
.postech-cloud-mark-p {
    color: #fff;
    font-weight: 900;
    font-size: 23px;
    line-height: 1;
    font-family: Arial, sans-serif;
}
.postech-cloud-wordmark {
    display: flex;
    direction: ltr;
    align-items: baseline;
    font-family: Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -.4px;
    white-space: nowrap;
}
.postech-cloud-wordmark-main { color: #fff; font-size: 18px; }
.postech-cloud-wordmark-dot { color: #43a1ff; font-size: 18px; }
.postech-cloud-wordmark-cloud { color: #9fd0ff; font-size: 18px; }

.postech-login-brand-content {
    position: relative;
    z-index: 2;
    margin: auto 0;
    padding: 36px 0 30px;
}
.postech-login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #d8edff;
    font-size: 12px;
    font-weight: 700;
}
.postech-login-brand-content h2 {
    margin: 20px 0 12px;
    max-width: 430px;
    color: #fff !important;
    font-size: clamp(27px, 2.4vw, 37px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -.4px;
}
.postech-login-brand-content > p {
    margin: 0;
    max-width: 430px;
    color: #c6def2 !important;
    font-size: 14px;
    line-height: 2;
}

.postech-login-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 27px;
}
.postech-login-feature {
    min-height: 58px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    background: rgba(255,255,255,.075);
    color: #f6fbff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(5px);
}
.postech-login-feature i {
    width: 22px;
    text-align: center;
    color: #8ecbff;
}

.postech-login-brand-footer {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,.11);
    padding-top: 18px;
}
.postech-login-brand-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.postech-login-brand-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    color: #e7f4ff !important;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}
.postech-login-brand-links a:hover { background: rgba(255,255,255,.13); }
.postech-login-brand-slogan { color: #aac8df; font-size: 11px; }

.postech-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 54px;
    background: #fff;
}
.postech-login-form-wrap { width: min(440px, 100%); }
.postech-login-mobile-brand { display: none; }

.postech-login-heading { margin-bottom: 27px; }
.postech-login-small-title {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--pc-blue);
    font-size: 12px;
    font-weight: 800;
}
.postech-login-heading h1 {
    margin: 0 0 8px;
    color: var(--pc-text) !important;
    font-size: 31px;
    line-height: 1.35;
    font-weight: 800;
}
.postech-login-heading p {
    margin: 0;
    color: var(--pc-muted) !important;
    font-size: 13px;
    line-height: 1.8;
}

.postech-login-alert {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #ffd2d2;
    border-radius: 10px;
    background: #fff5f5;
    color: #b63b3b;
    font-size: 12px;
}
.postech-login-form { width: 100%; }
.postech-login-field-group { margin-bottom: 17px; }
.postech-login-field-group > label {
    display: block;
    margin-bottom: 7px;
    color: #33495f;
    font-size: 12px;
    font-weight: 800;
}
.postech-login-input-wrap {
    position: relative;
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    border: 1px solid #cbdbea;
    border-radius: 11px;
    background: #fbfdff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.postech-login-input-wrap:focus-within {
    border-color: #65aaf5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21,119,234,.09);
}
.postech-login-input-wrap.has-error {
    border-color: #e66b6b;
    box-shadow: 0 0 0 3px rgba(217,75,75,.07);
}
.postech-login-input-icon {
    position: absolute;
    inset-inline-start: 15px;
    color: #8ca6bd;
    font-size: 13px;
    pointer-events: none;
}
.postech-login-input-wrap input {
    width: 100%;
    height: 50px;
    margin: 0 !important;
    padding-inline: 42px 46px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #10243b !important;
    font-size: 14px !important;
    font-weight: 600;
}
.postech-login-input-wrap input::placeholder { color: #a1afbd; font-weight: 400; }
.postech-login-password-toggle {
    position: absolute;
    inset-inline-end: 9px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8098ad;
    cursor: pointer;
}
.postech-login-password-toggle:hover { background: #edf5fc; color: var(--pc-blue); }
.postech-login-error {
    display: block;
    margin-top: 5px;
    color: var(--pc-danger);
    font-size: 11px;
}

.postech-login-options {
    margin: 3px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
}
.postech-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #53697f;
    cursor: pointer;
}
.postech-login-remember input {
    width: 15px;
    height: 15px;
    margin: 0 !important;
    accent-color: var(--pc-blue);
}
.postech-login-forgot {
    color: var(--pc-blue) !important;
    font-weight: 700;
    text-decoration: none !important;
}
.postech-login-forgot:hover { text-decoration: underline !important; }

.postech-login-submit {
    position: relative;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1681f5, #0b65d7);
    color: #fff;
    box-shadow: 0 11px 24px rgba(15,109,220,.22);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.postech-login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15,109,220,.28);
    filter: brightness(1.02);
}
.postech-login-submit:disabled { cursor: wait; opacity: .86; }
.postech-login-submit-normal,
.postech-login-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.postech-login-submit-loading { display: none; }
.postech-login-submit.is-loading .postech-login-submit-normal { display: none; }
.postech-login-submit.is-loading .postech-login-submit-loading { display: inline-flex; }

.postech-login-register {
    margin-top: 17px;
    text-align: center;
    color: #74879a;
    font-size: 12px;
}
.postech-login-register a { color: var(--pc-blue) !important; font-weight: 800; }

.postech-login-help-links {
    margin-top: 22px;
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    border-top: 1px solid #e7eef5;
}
.postech-login-help-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #62788d !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}
.postech-login-help-links a:hover { color: var(--pc-blue) !important; }
.postech-login-help-links .fa-whatsapp { color: #20a765; }

.postech-demo-access {
    margin-top: 18px;
    border: 1px solid var(--pc-line);
    border-radius: 11px;
    background: var(--pc-soft);
    overflow: hidden;
}
.postech-demo-access summary {
    padding: 11px 13px;
    color: #4d647a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.postech-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 11px 11px;
}
.postech-demo-grid a {
    padding: 8px;
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    background: #fff;
    color: #566d82 !important;
    font-size: 10px;
    text-align: center;
}

.postech-login-security-note {
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e7eef5;
    color: #7a8da0;
    font-size: 10px;
}
.postech-security-message,
.postech-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.postech-security-message i { color: #299668; }
.postech-connection-status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f0f7f4;
    color: #328161;
    font-weight: 700;
}
.postech-connection-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2eaa70;
    box-shadow: 0 0 0 3px rgba(46,170,112,.11);
}
.postech-connection-status.is-offline { background: #fff3f3; color: #b84d4d; }
.postech-connection-status.is-offline .postech-connection-dot {
    background: #d85d5d;
    box-shadow: 0 0 0 3px rgba(216,93,93,.10);
}

@media (max-width: 980px) {
    .postech-login-page { padding: 16px; }
    .postech-login-card {
        width: min(820px, 100%);
        grid-template-columns: 330px minmax(0,1fr);
    }
    .postech-login-brand-panel { padding: 30px 26px 25px; }
    .postech-login-form-panel { padding: 36px 34px; }
    .postech-login-brand-content h2 { font-size: 27px; }
}

@media (max-width: 760px) {
    body { background: #fff !important; }
    .postech-login-page {
        min-height: 100dvh;
        padding: 0;
        align-items: stretch;
        background: #fff;
    }
    .postech-login-card {
        min-height: 100dvh;
        width: 100%;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .postech-login-brand-panel { display: none; }
    .postech-login-form-panel {
        min-height: 100dvh;
        padding: 28px 22px max(28px, env(safe-area-inset-bottom));
        align-items: flex-start;
    }
    .postech-login-form-wrap {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .postech-login-mobile-brand {
        display: flex;
        margin: 4px 0 36px;
    }
    .postech-login-mobile-brand .postech-cloud-wordmark-main { color: var(--pc-navy); }
    .postech-login-mobile-brand .postech-cloud-wordmark-dot { color: var(--pc-blue); }
    .postech-login-mobile-brand .postech-cloud-wordmark-cloud { color: #4287c5; }
    .postech-login-heading { margin-bottom: 25px; }
    .postech-login-heading h1 { font-size: 29px; }
    .postech-login-input-wrap,
    .postech-login-input-wrap input,
    .postech-login-submit { min-height: 52px; }
    .postech-login-input-wrap input { height: 52px; font-size: 16px !important; }
    .postech-login-security-note { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
    .postech-login-form-panel { padding-inline: 18px; }
    .postech-login-mobile-brand { margin-bottom: 30px; }
    .postech-login-options { gap: 10px; }
    .postech-login-help-links { gap: 10px; }
    .postech-login-help-links a { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; }
}


/* POSTECH LOGIN V4.1 — host-theme override & readability fixes */
html body .postech-login-page .postech-login-brand-panel,
html body .postech-login-page .postech-login-brand-panel * {
    text-shadow: none;
}
html body .postech-login-page .postech-login-brand-panel .postech-login-brand-content h2 {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body .postech-login-page .postech-login-brand-panel .postech-login-brand-content > p {
    color: #d8ebfb !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #d8ebfb !important;
}
html body .postech-login-page .postech-login-brand-panel .postech-login-eyebrow {
    color: #eef8ff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #eef8ff !important;
}
html body .postech-login-page .postech-login-brand-panel .postech-login-feature,
html body .postech-login-page .postech-login-brand-panel .postech-login-feature span {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body .postech-login-page .postech-login-brand-panel .postech-login-brand-slogan {
    color: #d3e8f8 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #d3e8f8 !important;
}
html body .postech-login-page .postech-login-brand-panel .postech-login-brand-links a,
html body .postech-login-page .postech-login-brand-panel .postech-login-brand-links a span {
    color: #f4faff !important;
    -webkit-text-fill-color: #f4faff !important;
}

@media (min-width: 981px) and (max-height: 800px) {
    .postech-login-page { padding-block: 18px; }
    .postech-login-card { min-height: 560px; }
    .postech-login-brand-panel { padding-block: 30px 26px; }
    .postech-login-brand-content { padding-block: 24px 22px; }
    .postech-login-brand-content h2 { margin-top: 16px; font-size: 30px; line-height: 1.42; }
    .postech-login-brand-content > p { font-size: 13px; line-height: 1.9; }
    .postech-login-feature-grid { margin-top: 22px; }
    .postech-login-feature { min-height: 54px; }
    .postech-login-form-panel { padding-block: 34px; }
    .postech-login-heading { margin-bottom: 22px; }
}


/* POSTECH LOGIN V4.2 — auth-layout height integration & final compact tuning */
html body .postech-login-page {
    min-height: calc(100vh - var(--pc-auth-offset, 0px)) !important;
    min-height: calc(100dvh - var(--pc-auth-offset, 0px)) !important;
}

@media (min-width: 981px) and (max-height: 820px) {
    .postech-login-page { padding-block: 14px; }
    .postech-login-card { min-height: 520px; }
    .postech-login-brand-panel { padding: 26px 30px 22px; }
    .postech-login-brand-content { padding-block: 20px 18px; }
    .postech-login-brand-content h2 { margin: 14px 0 9px; font-size: 28px; line-height: 1.38; }
    .postech-login-brand-content > p { font-size: 12.5px; line-height: 1.8; }
    .postech-login-feature-grid { margin-top: 18px; gap: 8px; }
    .postech-login-feature { min-height: 49px; padding-block: 10px; }
    .postech-login-brand-footer { gap: 10px; padding-top: 14px; }
    .postech-login-form-panel { padding: 28px 48px; }
    .postech-login-heading { margin-bottom: 18px; }
    .postech-login-heading h1 { font-size: 29px; }
    .postech-login-field-group { margin-bottom: 14px; }
    .postech-login-options { margin-bottom: 16px; }
    .postech-login-help-links { margin-top: 17px; padding-top: 13px; }
    .postech-login-security-note { margin-top: 15px; padding-top: 12px; }
}

@media (max-width: 760px) {
    html body .postech-login-page,
    html body .postech-login-card,
    html body .postech-login-form-panel {
        min-height: calc(100dvh - var(--pc-auth-offset, 0px)) !important;
    }
}


/* =========================================================
   V4.2.1 - POSTECH logo correction
   ========================================================= */

/* Do not show customer/business logo on the POSTECH.CLOUD login identity panel. */
.postech-business-logo-wrap,
.postech-business-logo {
    display: none !important;
}

/* Center the login footer text now that the foreign/customer logo is removed. */
.postech-login-brand-footer {
    justify-content: center !important;
    text-align: center !important;
    padding-inline: 14px !important;
}

/* Keep POSTECH.CLOUD as the only visible brand identity on the navy panel. */
.postech-login-brand-top {
    margin-bottom: 4px !important;
}

.postech-cloud-wordmark {
    opacity: 1 !important;
}
