/*
 * UndanganKu by Bacaunduh — authentication surface stylesheet.
 *
 * Extracted verbatim from app-foundation.css, which shipped these rules with no
 * source file and duplicated them inline through partials.runtime-styles. This
 * file is now the single source; public/build/assets/auth-experience.css is its
 * byte-identical twin, matching the convention used by the other domain
 * stylesheets.
 *
 * Presentation only. No authorization logic.
 * No visual change is intended by the extraction itself.
 */

.bdu-auth-page{min-height:100vh;background:#fff}.bdu-auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(330px,43%) 1fr}.bdu-auth-story{position:relative;overflow:hidden;background:radial-gradient(circle at 18% 22%,rgba(224, 4, 14, .35),transparent 30%),linear-gradient(155deg,#1A0002 0%,#4A0004 56%,#730007 100%);color:#fff}.bdu-auth-story:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(230, 183, 85, .18);border-radius:50%;right:-210px;bottom:-170px}.bdu-auth-story-inner{position:relative;z-index:1;min-height:100%;padding:2.25rem clamp(2rem,5vw,4.5rem);display:flex;flex-direction:column}.bdu-auth-story-copy{margin:auto 0;max-width:520px}.bdu-eyebrow-light{margin-bottom:1rem;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#F0CE8C}.bdu-auth-story h2{font-family:var(--font-display);font-size:clamp(2.35rem,4vw,4.5rem);line-height:1.03;letter-spacing:-.035em;margin:0}.bdu-auth-story-copy>p:last-child{margin-top:1.35rem;max-width:460px;font-size:1rem;line-height:1.75;color:rgba(255,255,255,.72)}.bdu-auth-benefits{display:grid;gap:.55rem;margin-top:2rem}.bdu-auth-benefits span{display:flex;align-items:center;gap:.5rem;font-size:.82rem;color:rgba(255,255,255,.78)}.bdu-auth-benefits .bdu-icon{flex:0 0 auto;color:#F0CE8C}.bdu-auth-story-foot{margin-top:auto;padding-top:2rem;font-size:.72rem;color:rgba(255,255,255,.45)}
.bdu-auth-form-side{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff 0%,#FAFAF9 100%);padding:2rem}.bdu-auth-card{width:100%;max-width:470px;border:1px solid var(--bdu-slate-200);background:#fff;border-radius:1.15rem;padding:clamp(1.35rem,3vw,2rem);box-shadow:0 20px 60px rgba(115, 0, 7, .07)}.bdu-auth-mobile-brand{display:none;width:100%;max-width:470px;margin-bottom:1.25rem}.bdu-auth-legal{margin-top:1rem;font-size:.72rem;color:var(--bdu-slate-500)}.bdu-trust-row{display:flex;flex-wrap:wrap;gap:.5rem .9rem;justify-content:center;margin-top:1rem;font-size:.68rem;color:var(--bdu-slate-500)}.bdu-trust-row span{display:inline-flex;align-items:center;gap:.25rem}.bdu-trust-row .bdu-icon{color:var(--bdu-primary, #E0040E)}
.bdu-auth-card input:not([type=checkbox]):not([type=radio]),.bdu-auth-card select,.bdu-auth-card textarea{border-color:var(--bdu-slate-300)!important;border-radius:.75rem!important}.bdu-auth-card input:focus,.bdu-auth-card select:focus,.bdu-auth-card textarea:focus{border-color:var(--bdu-primary, #E0040E)!important;box-shadow:0 0 0 3px rgba(224, 4, 14, .12)!important}
@media (max-width:47.99rem){.bdu-auth-shell{display:block}.bdu-auth-story{display:none}.bdu-auth-form-side{min-height:100vh;justify-content:flex-start;padding:1.25rem 1rem 2rem;background:var(--bdu-slate-50)}.bdu-auth-mobile-brand{display:block}.bdu-auth-card{padding:1.25rem;border-radius:1rem;box-shadow:0 10px 30px rgba(115, 0, 7, .05)}.bdu-auth-legal{text-align:center}}

/* ==========================================================================
 * Mobile app-style layer.
 *
 * Below 48rem the desktop story panel is hidden, which previously left a plain
 * white form with no brand presence. The rules here turn that side into an
 * app-like surface: a branded header band, a card that reads as a sheet, real
 * touch targets, and a height that follows the visible viewport instead of the
 * browser's idea of it.
 *
 * Presentation only. No authorization logic.
 * ========================================================================== */

/*
 * 100vh on mobile is the viewport with browser chrome expanded, so a page sized
 * to it is taller than what the user can see and the submit button ends up
 * below the fold. 100dvh tracks the visible area as the chrome collapses. The
 * vh rules above stay as the fallback for browsers without dvh.
 */
@supports (height: 100dvh) {
    .bdu-auth-page,
    .bdu-auth-shell {
        min-height: 100dvh;
    }
}

/*
 * iOS Safari zooms the whole page when a focused field renders below 16px,
 * which throws the layout off centre and cannot be undone by the user.
 */
.bdu-auth-card input:not([type="checkbox"]):not([type="radio"]),
.bdu-auth-card select,
.bdu-auth-card textarea {
    font-size: 16px;
}

@media (max-width: 47.99rem) {
    /*
     * The card is centred in the viewport rather than pinned to the top: on a
     * phone the form is the whole page, and a block sitting under the status bar
     * reads as a fragment of a larger page that never arrives.
     */
    .bdu-auth-form-side {
        justify-content: center;
        padding:
            calc(1.5rem + env(safe-area-inset-top, 0px))
            1rem
            max(1.5rem, env(safe-area-inset-bottom, 0px));
    }

    @supports (min-height: 100dvh) {
        .bdu-auth-form-side {
            min-height: 100dvh;
        }
    }

    /*
     * Brand presence that the hidden story panel used to carry. It caps the
     * card rather than floating above it: the card overlaps its lower edge, so
     * the two read as one object.
     */
    .bdu-auth-mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .65rem;
        width: 100%;
        max-width: 26rem;
        margin: 0 0 -1.4rem;
        padding: 1.35rem 1.25rem 2.6rem;
        border-radius: 1.35rem 1.35rem 0 0;
        background:
            radial-gradient(circle at 18% 22%, rgba(224, 4, 14, .35), transparent 30%),
            linear-gradient(155deg, #1A0002 0%, #4A0004 56%, #730007 100%);
        text-align: center;
    }

    .bdu-auth-mobile-tagline {
        margin: 0;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #F0CE8C;
    }

    .bdu-auth-card {
        position: relative;
        width: 100%;
        max-width: 26rem;
        margin: 0;
        padding: 1.5rem 1.25rem;
        border-radius: 1.35rem;
        box-shadow: 0 18px 44px rgba(115, 0, 7, .1);
    }

    /* The tagline now sits in the header band, so the footer copy would be a
       second identical line on the same screen. */
    .bdu-auth-legal {
        display: none;
    }

    /* Touch targets. Padding is used instead of a fixed height so inline links
       keep flowing with the sentence they sit in. */
    .bdu-auth-card button[type="submit"],
    .bdu-auth-card .bdu-primary {
        min-height: 48px;
    }

    .bdu-auth-card input:not([type="checkbox"]):not([type="radio"]),
    .bdu-auth-card select {
        min-height: 46px;
    }

    .bdu-auth-card .bdu-link {
        padding-block: .35rem;
    }
}

/* --------------------------------------------------------------------------
 * Form assistance.
 * The Caps Lock hint is injected by auth-experience.js; without the script it
 * never appears and nothing else changes.
 * -------------------------------------------------------------------------- */

.bdu-auth-caps-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .45rem 0 0;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bdu-slate-700);
}

.bdu-auth-caps-hint::before {
    content: "";
    flex: 0 0 auto;
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    background: var(--bdu-secondary, #E6B755);
}

.bdu-auth-caps-hint[hidden] {
    display: none;
}

/* Shown when the person was redirected here from a page that needed a session. */
.bdu-auth-intended {
    margin: 0 0 1rem;
    border: 1px solid var(--bdu-slate-200);
    border-left: 3px solid var(--bdu-secondary, #E6B755);
    border-radius: .6rem;
    background: var(--bdu-slate-50);
    padding: .6rem .75rem;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--bdu-slate-700);
}

/* --------------------------------------------------------------------------
 * Authentication utility row.
 * -------------------------------------------------------------------------- */

.bdu-auth-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
}

.bdu-auth-form-row--end {
    justify-content: flex-end;
}


/* --------------------------------------------------------------------------
 * Password field.
 *
 * Replaces the input component's built-in reveal control, whose icon did not
 * belong to this icon set. The control sits inside the field rather than
 * beside it, so the field keeps its full width and the row keeps one baseline.
 * -------------------------------------------------------------------------- */

.bdu-password-control {
    position: relative;
    display: block;
}

.bdu-password-input {
    /* Room for the toggle, plus a little so long values never run under it. */
    padding-right: 2.9rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}

.bdu-password-toggle {
    position: absolute;
    top: 50%;
    right: .4rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Below the 44px guideline on purpose: the control sits inside a field that
       is itself a large target, and a 44px button would crowd the border. */
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: var(--bdu-slate-500);
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.bdu-password-toggle:hover {
    background: var(--bdu-slate-100);
    color: var(--bdu-slate-700);
}

.bdu-password-toggle:focus-visible {
    outline: 2px solid var(--bdu-primary, #E0040E);
    outline-offset: 1px;
    color: var(--bdu-slate-700);
}

/* Pressed state reads as "currently revealed", not merely hovered. */
.bdu-password-toggle[aria-pressed="true"] {
    color: var(--bdu-primary, #E0040E);
}

.bdu-password-toggle[hidden] {
    display: none;
}

.bdu-password-toggle-icon {
    display: inline-flex;
    line-height: 0;
}

.bdu-password-toggle-icon[hidden] {
    display: none;
}

.bdu-field-help {
    margin: .4rem 0 0;
    font-size: .74rem;
    line-height: 1.45;
    color: var(--bdu-slate-500);
}

.bdu-auth-card .bdu-field-error {
    display: block;
    margin: .4rem 0 0;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--bdu-primary-dark, #A90006);
}

.bdu-auth-card [aria-invalid="true"] {
    border-color: var(--bdu-primary, #E0040E);
}

@media (max-width: 47.99rem) {
    /* The field grows on small screens, so the control grows with it. */
    .bdu-password-toggle {
        width: 2.35rem;
        height: 2.35rem;
    }

    .bdu-password-input {
        padding-right: 3.15rem;
    }
}

/* --------------------------------------------------------------------------
 * Text field.
 * Shares the label, help and error treatment with the password field, so a
 * form reads as one set of controls rather than two vendors side by side.
 * -------------------------------------------------------------------------- */

.bdu-auth-card .bdu-input {
    border-color: var(--bdu-slate-300);
    border-radius: .75rem;
}

.bdu-auth-card .bdu-input:focus {
    border-color: var(--bdu-primary, #E0040E);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 4, 14, .12);
}

@media (max-width: 47.99rem) {
    .bdu-auth-card .bdu-input {
        min-height: 46px;
    }
}

/* Workspace picker/create app-style surfaces */
.bdu-workspace-picker,.bdu-workspace-create{display:grid;gap:1rem}.bdu-workspace-picker-head{display:grid;gap:.25rem}.bdu-workspace-picker-head h1{font-family:'Playfair Display',Georgia,serif;font-size:1.75rem;line-height:1.15;color:#2c1518}.bdu-workspace-picker-head>p:last-child{color:#6b5659;font-size:.8rem;line-height:1.55}.bdu-workspace-picker-list{display:grid;gap:.65rem}.bdu-workspace-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:.7rem;align-items:center;padding:.8rem;border:1px solid #eadfe0;border-radius:15px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.bdu-workspace-choice:hover{border-color:#f5b9bd;background:#fffaf8}.bdu-workspace-choice.is-active{border-color:#f5b9bd;background:#fff7f7;box-shadow:0 8px 24px rgba(224,4,14,.06)}.bdu-workspace-choice-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#fff1f2;color:#a90006}.bdu-workspace-choice-copy{min-width:0;display:grid;gap:.12rem}.bdu-workspace-choice-copy strong{color:#2c1518;font-size:.83rem;overflow-wrap:anywhere}.bdu-workspace-choice-copy small{color:#8b7276;font-size:.69rem}.bdu-workspace-active-badge{padding:.28rem .5rem;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.63rem;font-weight:850}.bdu-workspace-choice-action{min-height:38px;border:1px solid #e7cfd1;border-radius:10px;background:#fff;color:#a90006;padding:.45rem .65rem;font:inherit;font-size:.72rem;font-weight:850;cursor:pointer}.bdu-workspace-choice-action:hover{background:#fff1f2}.bdu-workspace-create-action{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:.45rem}.bdu-workspace-logout{text-align:center}.bdu-workspace-logout button{border:0;background:none;color:#78666a;font:inherit;font-size:.74rem;cursor:pointer}.bdu-workspace-logout button:hover{text-decoration:underline}.bdu-workspace-picker-empty{display:grid;place-items:center;gap:.3rem;padding:1.2rem;border:1px dashed #d8cacc;border-radius:15px;color:#8b7276;text-align:center}.bdu-workspace-picker-empty strong{color:#2c1518;font-size:.82rem}.bdu-workspace-picker-empty span{font-size:.72rem}.bdu-workspace-create .bdu-back-link{margin-bottom:.1rem}.bdu-workspace-create-form{display:grid;gap:1rem}.bdu-workspace-type-fieldset{display:grid;gap:.55rem;border:0;padding:0;margin:0}.bdu-workspace-type-fieldset legend{margin-bottom:.45rem;color:#2c1518;font-size:.78rem;font-weight:800}.bdu-workspace-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.bdu-workspace-type-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;min-height:104px;padding:.75rem;border:1px solid #eadfe0;border-radius:14px;background:#fff;cursor:pointer}.bdu-workspace-type-card:has(input:checked){border-color:#e0040e;background:#fff7f7;box-shadow:0 0 0 2px #fff1f2}.bdu-workspace-type-card input{position:absolute;opacity:0;pointer-events:none}.bdu-workspace-type-card:focus-within{outline:3px solid #fff1f2;outline-offset:2px}.bdu-workspace-type-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff1f2;color:#a90006}.bdu-workspace-type-card>span:last-child{display:grid;gap:.2rem}.bdu-workspace-type-card strong{color:#2c1518;font-size:.8rem}.bdu-workspace-type-card small{color:#78666a;font-size:.68rem;line-height:1.45}.bdu-workspace-create-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:.65rem}.bdu-workspace-create-actions>*{width:100%}
@media(max-width:640px){.bdu-workspace-choice{grid-template-columns:auto minmax(0,1fr) auto}.bdu-workspace-active-badge{grid-column:2;justify-self:start}.bdu-workspace-choice-action{grid-row:1/3;grid-column:3}.bdu-workspace-type-grid{grid-template-columns:1fr}.bdu-workspace-type-card{min-height:88px}.bdu-workspace-create-actions{grid-template-columns:1fr}}

.bdu-workspace-back-link{display:inline-flex;align-items:center;gap:.35rem;color:#a90006;font-size:.74rem;font-weight:800;text-decoration:none}.bdu-workspace-back-link:hover{text-decoration:underline}
