/* หน้าเข้าสู่ระบบ / สมัครสมาชิก (Member/Login.aspx, Member/Register.aspx) — โทนเดียวกับหน้าเลือกที่นั่ง/คำสั่งซื้อ */
.au-page {
    --au-ink: #1f2937;
    --au-muted: #6b7280;
    --au-line: #e5e7eb;
    --au-green: #2f7a5a;
    --au-green-dark: #276a4d;
    --au-green-bg: #f0f8f3;
    display: flex;
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 72px;
    font-family: 'Prompt', sans-serif;
    color: var(--au-ink);
}

.au-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 28px 28px;
    border: 1px solid var(--au-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 48px -32px rgba(16, 24, 40, 0.45);
}

.au-card-wide {
    max-width: 1040px;
    padding: 36px 40px 32px;
}

/* ---------- หัวการ์ด ---------- */
.au-brand {
    margin-bottom: 24px;
    text-align: center;
}

    .au-brand img {
        height: 56px;
        margin-bottom: 12px;
    }

    .au-brand h2 {
        margin: 0 0 4px;
        font-size: 1.5em;
        font-weight: 600;
    }

    .au-brand p {
        margin: 0;
        color: var(--au-muted);
        font-size: 0.92em;
    }

.au-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--au-line);
    text-align: left;
}

    .au-brand-row img {
        height: 48px;
        margin: 0;
    }

/* ไอคอนวงกลมแทนโลโก้ (ลืมรหัสผ่าน / ส่งอีเมลแล้ว) */
.au-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--au-green-bg);
    border: 1px solid #cde8d8;
    color: var(--au-green);
    box-shadow: 0 0 0 8px #f7fbf8;
}

.au-brand p {
    line-height: 1.55;
}

/* ลิงก์ "กลับไปหน้าเข้าสู่ระบบ" */
.au-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--au-muted) !important;
    font-size: 0.9em;
    text-decoration: none !important;
}

    .au-back:hover {
        color: var(--au-green) !important;
    }

/* กล่องคำแนะนำ (ไม่พบอีเมล → ดู Junk) */
.au-tip {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--au-line);
    color: var(--au-muted);
    font-size: 0.86em;
    line-height: 1.55;
}

    .au-tip b {
        color: var(--au-ink);
        font-weight: 600;
    }

.au-foot {
    margin: 16px 0 0;
    color: var(--au-muted);
    font-size: 0.88em;
    text-align: center;
}

/* ---------- ช่องกรอก (Login) ---------- */
.au-field {
    margin-bottom: 16px;
}

.au-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.au-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88em;
    font-weight: 500;
}

.au-link {
    color: var(--au-green) !important;
    font-size: 0.85em;
    font-weight: 500;
}

    .au-link:hover {
        text-decoration: underline;
    }

.au-password {
    position: relative;
}

    .au-password .au-input input {
        padding-right: 44px !important;
    }

/* ปุ่มตาอยู่กลางกล่องกรอก (46px) — ยึดด้านบน ไม่ใช้ 50% เพราะข้อความ error ใต้ช่องทำให้กล่องรวมสูงขึ้น */
.au-eye {
    position: absolute;
    top: 1px;
    right: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--au-muted);
    cursor: pointer;
}

    .au-eye:hover,
    .au-eye.is-on {
        color: var(--au-green);
    }

/* ไอคอนตกแต่งในช่อง (เช่น กุญแจในช่องชื่อผู้ใช้) — กดไม่ได้ เปลี่ยนเป็นสีเขียวเมื่อช่องถูกโฟกัส */
.au-field-icon {
    pointer-events: none;
    cursor: default;
}

    .au-field-icon:hover {
        color: var(--au-muted);
    }

.au-has-icon:focus-within .au-field-icon {
    color: var(--au-green);
}

/* ---------- editor ของ DevExpress ในการ์ด: สูงขึ้น มุมโค้ง โฟกัสสีเขียว ---------- */
.au-card .dxeTextBoxSys,
.au-card .dxeButtonEditSys {
    border-radius: 10px !important;
    border-color: #d1d5db !important;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

/* DevExpress ใส่ padding ใน td รอบ input อีกชั้น → กล่องสูง ~60px ไม่เท่ากัน
   เอา padding ออก แล้วให้ input สูง 44px เอง = กล่องสูงเท่ากันทุกช่อง (46px รวมขอบ) */
.au-card .dxeTextBoxSys td,
.au-card .dxeButtonEditSys td.dxic {
    padding: 0 !important;
}

.au-card .dxeTextBoxSys input,
.au-card .dxeButtonEditSys input {
    height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box;
    font: 0.95em 'Prompt', sans-serif;
    line-height: 44px;
}

.au-card .dxeFocused {
    border-color: var(--au-green) !important;
    box-shadow: 0 0 0 3px rgba(47, 122, 90, 0.15);
}

.au-card .error-frame,
.au-card .dxeErrorFrameSys .dxeErrorCellSys {
    color: #dc2626;
    font-size: 0.8em;
}

/* ---------- ปุ่ม ---------- */
.au-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px !important;
    font: 600 1em 'Prompt', sans-serif !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.au-btn-primary {
    border: 0 !important;
    background: var(--au-green) !important;
    color: #ffffff !important;
}

    .au-btn-primary:hover {
        background: var(--au-green-dark) !important;
    }

/* Edge/IE ใส่ปุ่ม "ดูรหัสผ่าน" และปุ่มล้าง (×) ของตัวเองในช่องรหัสผ่านตอนเริ่มพิมพ์ → ซ้อนกับปุ่มตาของเรา — ซ่อนของเบราว์เซอร์ */
.au-card input[type="password"]::-ms-reveal,
.au-card input[type="password"]::-ms-clear,
.au-card input::-ms-clear {
    display: none;
}

/* ปุ่มกำลังโหลด: วงหมุนหน้าข้อความ — ไม่ซีดแบบปุ่ม disabled ทั่วไป */
.au-btn.is-loading,
.is-loading .au-btn,
.au-btn-primary.is-loading {
    opacity: 1 !important;
    cursor: progress !important;
    pointer-events: none;
}

    .au-btn.is-loading::before,
    .is-loading .au-btn::before {
        content: "";
        display: inline-block;
        width: 18px;
        height: 18px;
        margin-right: 10px;
        border: 2.5px solid rgba(255, 255, 255, 0.35);
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: au-spin .8s linear infinite;
        vertical-align: -3px;
    }

@keyframes au-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .au-btn.is-loading::before,
    .is-loading .au-btn::before {
        animation-duration: 2s;
    }
}

.au-btn-outline {
    border: 1px solid #cde8d8;
    background: var(--au-green-bg);
    color: var(--au-green) !important;
}

    .au-btn-outline:hover {
        border-color: var(--au-green);
    }

.au-social:empty {
    display: none;
}

.au-social .btn {
    margin-bottom: 16px;
    border-radius: 12px;
}

.au-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--au-muted);
    font-size: 0.85em;
}

    .au-divider::before,
    .au-divider::after {
        content: "";
        flex: 1;
        border-top: 1px solid var(--au-line);
    }

/* ---------- ฟอร์มสมัคร (ASPxFormLayout) ---------- */
.au-form {
    margin-top: 8px;
}

    /* หัวข้อกลุ่ม: ข้อมูลบัญชี / ข้อมูลส่วนตัว / ... */
    .au-form [class*="dxflGroupBoxCaption"],
    .au-form [class*="dxflHeadingLineGroupBoxSys"] > span,
    .au-form .dxflHeadingLineGroupBoxSys > div:first-child {
        color: var(--au-green) !important;
        font-weight: 600 !important;
        font-size: 1em !important;
    }

    .au-form .au-group {
        margin-top: 12px;
    }

    .au-form [class*="dxflCaption"] {
        color: var(--au-ink);
        font-size: 0.88em;
        font-weight: 500;
    }

.au-half {
    max-width: 320px;
}

.au-mt {
    margin-top: 8px;
}

/* หน้าโปรไฟล์: ชื่อผู้ใช้ (แก้ไม่ได้) + รหัสสมาชิก — พื้นเทาอ่อน บอกว่าเป็นค่าที่อ่านอย่างเดียว */
.au-card .au-readonly.dxeTextBoxSys,
.au-card .au-readonly .dxeTextBoxSys {
    background: #f8fafc !important;
}

    .au-card .au-readonly input {
        color: var(--au-muted) !important;
        cursor: default;
    }

.au-static {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--au-line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--au-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.au-check {
    margin-top: 4px;
}

    .au-check label {
        font-size: 0.95em;
        cursor: pointer;
    }

.au-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* รูปโปรไฟล์: กรอบสี่เหลี่ยมแนวตั้ง (4:5) มุมโค้ง อยู่ขวาของชื่อผู้ใช้ — ปุ่มอัปโหลดใต้รูป */
.au-photo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 200px;
}

/* สูงพอดี 2 แถว (ชื่อผู้ใช้ + รหัสผ่าน) — สูงกว่านี้ DevExpress จะยืดแถวชื่อผู้ใช้จนมีช่องว่าง */
.au-photo-img {
    display: block;
    width: 100% !important;
    height: 150px !important;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
    /* ยังไม่มีรูป: เงาคนสีเทา + ป้ายกล้องสีเขียวมุมขวาล่าง (บอกว่ากดเพิ่มรูปได้) */
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='%232f7a5a' stroke='%23ffffff' stroke-width='2'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16.5a2 2 0 0 1 2-2h2l1.5-2h5l1.5 2h2a2 2 0 0 1 2 2V25a2 2 0 0 1-2 2H14a2 2 0 0 1-2-2z'/%3E%3Ccircle cx='20' cy='20.5' r='3'/%3E%3C/g%3E%3C/svg%3E") right 10px bottom 10px / 34px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cbd5e1'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0z'/%3E%3C/svg%3E") center 42% / 46% no-repeat,
        #f8fafc;
    transition: border-color .15s, background-color .15s;
}

    .au-photo-img:hover {
        border-color: var(--au-green);
        background-color: var(--au-green-bg);
    }

    /* มีรูปแล้ว: เส้นทึบ */
    .au-photo-img[src]:not([src=""]) {
        border-style: solid;
        border-color: var(--au-line);
    }

.au-photo-upload {
    width: 100% !important;
}

    .au-photo-upload .dxucBrowseButton_Default,
    .au-photo-upload [class*="dxucBrowseButton"] {
        width: 100% !important;
        border-radius: 10px !important;
    }

.au-help {
    display: block;
    color: var(--au-muted);
    font-size: 0.78em;
    text-align: center;
}

.au-help-left {
    margin-top: 4px;
    text-align: left;
}

/* รูปอยู่บนสุดของคอลัมน์ ไม่ลอยกลางแถว */
.au-photo-item,
.au-photo-item > * {
    vertical-align: top !important;
}

.au-submit {
    padding-top: 16px;
}

/* ปุ่มคู่ท้ายฟอร์ม: สมัคร | เข้าสู่ระบบ */
.au-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

    .au-actions > * {
        flex: 1 1 0;
        min-width: 0;
    }

/* ---------- popup สมัครไม่สำเร็จ ---------- */
.au-modal .modal-content {
    border: 0;
    border-radius: 18px;
    font-family: 'Prompt', sans-serif;
}

.au-modal .modal-header {
    border-bottom: 0;
}

.au-modal .modal-title {
    color: #b91c1c;
    font-weight: 600;
}

.au-modal .modal-body {
    color: var(--au-ink);
}

.au-modal .modal-footer {
    border-top: 0;
}

/* ==========================================================================
   Cloudflare Turnstile — ปกติซ่อน; ถ้าต้องให้ผู้ใช้ยืนยันเอง (turnstile-gate.js ใส่ .is-visible)
   แสดงเป็นกล่องกลางจอ + พื้นหลังมืด (เดิมโผล่มุมซ้ายบนของหน้า)
   ========================================================================== */
#turnstile-host {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 3000;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    overflow: hidden;
}

    #turnstile-host.is-visible {
        width: min(360px, calc(100vw - 32px));
        height: auto;
        overflow: visible;
        padding: 24px 22px 22px;
        border-radius: 18px;
        background: #ffffff;
        font-family: 'Prompt', sans-serif;
        text-align: center;
        /* พื้นหลังมืดทั้งจอ */
        box-shadow: 0 0 0 100vmax rgba(17, 24, 39, 0.45), 0 30px 70px -24px rgba(17, 24, 39, 0.5);
        animation: au-ts-in .25s ease-out;
    }

        #turnstile-host.is-visible::before {
            content: attr(data-title);
            display: block;
            margin-bottom: 4px;
            color: #1f2937;
            font-size: 1.1em;
            font-weight: 600;
        }

        #turnstile-host.is-visible::after {
            content: attr(data-text);
            display: block;
            order: -1;
            margin: 0 0 14px;
            color: #6b7280;
            font-size: 0.88em;
        }

        /* วิดเจ็ตของ Cloudflare (iframe) อยู่กลางกล่อง */
        #turnstile-host.is-visible > div,
        #turnstile-host.is-visible iframe {
            display: block;
            margin: 0 auto;
        }

/* ข้อความ data-text ต้องอยู่ "ใต้หัวข้อ เหนือวิดเจ็ต" → ใช้ flex จัดลำดับ */
#turnstile-host.is-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    #turnstile-host.is-visible::before {
        order: -2;
    }

html.turnstile-open {
    overflow: hidden;
}

@keyframes au-ts-in {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ==========================================================================
   หน้าสมัครสมาชิก (.au-card-wide): ตัวหนังสือใหญ่ขึ้น + dropdown แบบใหม่
   ========================================================================== */
.au-card-wide .au-brand h2 {
    font-size: 1.7em;
}

.au-card-wide .au-brand p {
    font-size: 1em;
}

/* หัวข้อกลุ่ม: ข้อมูลบัญชี / ข้อมูลส่วนตัว / ช่องทางติดต่อ */
.au-card-wide .au-form [class*="dxflGroupBoxCaption"],
.au-card-wide .au-form .dxflHeadingLineGroupBoxSys > div:first-child,
.au-card-wide .au-form [class*="dxflHeadingLineGroupBoxSys"] > span {
    font-size: 1.15em !important;
}

/* ป้ายชื่อช่อง */
.au-card-wide .au-form [class*="dxflCaption"] {
    font-size: 0.98em;
}

/* ตัวหนังสือในช่องกรอก/dropdown */
.au-card-wide .dxeTextBoxSys input,
.au-card-wide .dxeButtonEditSys input {
    font-size: 1.02em !important;
}

.au-card-wide .au-help {
    font-size: 0.85em;
}

/* ---------- dropdown (ASPxComboBox) ----------
   ลูกศรวาดเป็นพื้นหลังของกล่อง (ระยะคงที่จากขอบขวา) — ไม่พึ่งความกว้างช่องปุ่มของ DevExpress
   ปุ่มเดิมยังกดได้ แต่โปร่งใสทั้งหมด */
.au-card .dxeButtonEditSys {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat !important;
    cursor: pointer;
}

    .au-card .dxeButtonEditSys.dxeFocused {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a5a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    }

    .au-card .dxeButtonEditSys input {
        padding-right: 44px !important;
        background: transparent !important;
        cursor: pointer;
    }

    .au-card .dxeButtonEditSys td {
        background: transparent !important;
    }

    /* ช่องปุ่มของ DevExpress: ไม่มีพื้น/ขอบ/รูป แต่ยังรับคลิก */
    .au-card .dxeButtonEditSys td[class*="dxeButton"] {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

        .au-card .dxeButtonEditSys td[class*="dxeButton"] * {
            opacity: 0 !important;
        }

/* รายการที่เปิดลงมา (DevExpress วาดไว้ท้าย body นอก .au-card — หน้าที่โหลด auth.css เท่านั้น) */
[class*="dxpcDropDown"],
.dxeDropDownWindow_Default,
[class*="dxeDropDownWindow"] {
    overflow: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 40px -18px rgba(16, 24, 40, 0.35) !important;
}

[class*="dxeListBox"] {
    border: 0 !important;
    font-family: 'Prompt', sans-serif !important;
}

[class*="dxeListBoxItem"] {
    padding: 10px 14px !important;
    border: 0 !important;
    color: #1f2937;
    font-size: 0.98em !important;
}

[class*="dxeListBoxItemHover"] {
    background: #f0f8f3 !important;
    color: #1d6b4f !important;
}

[class*="dxeListBoxItemSelected"] {
    background: #2f7a5a !important;
    color: #ffffff !important;
}

/* ==========================================================================
   รูปแบบสองแผง (Login / ลืมรหัสผ่าน / ส่งอีเมลแล้ว): แบรนด์ซ้าย + ฟอร์มขวา
   ========================================================================== */
.au-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    width: 100%;
    max-width: 880px;
    /* จัดกลางด้วย margin — container ของเว็บทำให้ flex ของ .au-page ไม่จัดกลาง */
    margin: 0 auto;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--au-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 30px 60px -40px rgba(16, 24, 40, 0.5);
}

    /* การ์ดฟอร์มในแผงขวา: ไม่มีกรอบซ้อน ตัวหนังสือชิดซ้าย */
    .au-shell .au-card {
        max-width: none;
        padding: 52px 56px 44px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        align-self: center;
    }

    .au-shell .au-brand {
        margin-bottom: 28px;
        text-align: left;
    }

        /* โลโก้อยู่ในแผงซ้ายแล้ว */
        .au-shell .au-brand > img {
            display: none;
        }

        .au-shell .au-brand h2 {
            font-size: 1.55em;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .au-shell .au-brand p {
            margin-top: 6px;
        }

    /* ไอคอน: สี่เหลี่ยมมุมมน เรียบ ๆ ไม่มีวงเรือง */
    .au-shell .au-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
        border-radius: 12px;
        box-shadow: none;
    }

        .au-shell .au-icon svg {
            width: 24px;
            height: 24px;
        }

    .au-shell .au-back {
        justify-content: flex-start;
    }

    .au-shell .au-foot {
        text-align: left;
    }

/* แผงแบรนด์ */
.au-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 36px 32px;
    overflow: hidden;
    background: linear-gradient(160deg, #1d6b4f 0%, #123c2e 100%);
    color: #ffffff;
}

    /* ลายเส้นวงกลมจาง ๆ — ให้แผงไม่แบน */
    .au-aside::before,
    .au-aside::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.08);
        pointer-events: none;
    }

    .au-aside::before {
        width: 420px;
        height: 420px;
        right: -220px;
        bottom: -160px;
    }

    .au-aside::after {
        width: 260px;
        height: 260px;
        right: -120px;
        bottom: -60px;
        border-color: rgba(226, 194, 122, 0.18);
    }

.au-aside-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .au-aside-brand strong {
        display: block;
        font-size: 1.02em;
        font-weight: 600;
    }

    .au-aside-brand small {
        display: block;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.76em;
        line-height: 1.4;
    }

.au-aside-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
}

    .au-aside-logo img {
        width: 42px;
        height: 42px;
    }

.au-aside-copy {
    position: relative;
}

    .au-aside-copy h3 {
        margin: 0 0 10px;
        color: #ffffff;
        font-size: 1.45em;
        font-weight: 600;
        line-height: 1.35;
    }

    /* เส้นทองสั้น ๆ ใต้หัวข้อ */
    .au-aside-copy h3::after {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        margin-top: 14px;
        border-radius: 2px;
        background: #e2c27a;
    }

    .au-aside-copy p {
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.92em;
        line-height: 1.65;
    }

.au-aside-foot {
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75em;
}

/* ปุ่มหลักในแผงฟอร์ม: เข้มขึ้นเล็กน้อย + เงาบาง */
.au-shell .au-btn-primary {
    box-shadow: 0 8px 18px -10px rgba(29, 107, 79, 0.7);
}

/* แท็บเล็ต: แผงซ้ายแคบลง */
@media (max-width: 991px) {
    .au-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }

        .au-shell .au-card {
            padding: 40px 36px 36px;
        }

    .au-aside {
        padding: 32px 26px 26px;
    }
}

/* มือถือ: แผงแบรนด์เหลือแถบหัวบาง ๆ (โลโก้ + ชื่อ) */
@media (max-width: 767px) {
    .au-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .au-aside {
        padding: 16px 20px;
    }

    .au-aside-copy,
    .au-aside-foot,
    .au-aside::before,
    .au-aside::after {
        display: none;
    }

    .au-aside-logo {
        width: 40px;
        height: 40px;
    }

        .au-aside-logo img {
            width: 32px;
            height: 32px;
        }

    .au-shell .au-card {
        padding: 28px 20px 24px;
    }
}

/* ---------- จอเล็ก ---------- */
@media (max-width: 575px) {
    .au-page {
        padding-top: 16px;
    }

    .au-card {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .au-brand-row {
        flex-direction: column;
        text-align: center;
    }

    .au-half {
        max-width: none;
    }

    /* เรียงลง: flex-basis 0 จะบีบ "ความสูง" ปุ่มแทนความกว้าง → ให้สูงตามตัวเอง (46px) */
    .au-actions {
        flex-direction: column;
        gap: 10px;
    }

        .au-actions > * {
            flex: 0 0 auto;
            width: 100%;
        }

    /* จอเล็ก: รูปอยู่ใต้ชื่อผู้ใช้ เล็กลง ชิดกลาง */
    .au-photo {
        max-width: 160px;
        margin: 0 auto;
    }
}
