/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-flsscurird] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-flsscurird] {
    flex: 1;
}

.sidebar[b-flsscurird] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-flsscurird] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-flsscurird]  a, .top-row[b-flsscurird]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-flsscurird]  a:hover, .top-row[b-flsscurird]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-flsscurird]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-flsscurird] {
        justify-content: space-between;
    }

    .top-row[b-flsscurird]  a, .top-row[b-flsscurird]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-flsscurird] {
        flex-direction: row;
    }

    .sidebar[b-flsscurird] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-flsscurird] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-flsscurird]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-flsscurird], article[b-flsscurird] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Pages/Auth/LoginPage.razor.rz.scp.css */
/* --- Base Wrapper --- */
.login-page-wrapper[b-vv309n4vbn] {
    background: var(--mud-palette-background);
    display: flex;
    flex-direction: column;
}

    /* บังคับ Container ให้จัดวางแบบ Flex */
    .login-page-wrapper[b-vv309n4vbn]  .mud-container {
        display: flex;
        flex-direction: column;
    }

.fw-bold[b-vv309n4vbn] {
    font-weight: 700;
}

.transition-all[b-vv309n4vbn] {
    transition: all 0.3s ease;
}

/* --- Logo Section --- */
.logo-box[b-vv309n4vbn] {
    background: var(--mud-palette-primary);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(var(--mud-palette-primary-rgb), 0.25);
}

/* --- Input Highlighting --- */
.input-field-wrapper[b-vv309n4vbn]  .mud-input-outlined-border {
    transition: all 0.2s ease;
}

.field-active[b-vv309n4vbn]  .mud-input-outlined-border {
    border-width: 2px !important;
    border-color: var(--mud-palette-primary) !important;
}

.field-active[b-vv309n4vbn]  .mud-input-control {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.05) !important;
    border-radius: 8px;
}

/* --- PIN Display --- */
[b-vv309n4vbn] .bg-light {
    background-color: var(--mud-palette-background-gray);
    border: 1px solid transparent;
}

[b-vv309n4vbn] .field-active-pin {
    background-color: #F0F9FF !important;
    border: 1px solid var(--mud-palette-primary) !important;
}

.pin-dot[b-vv309n4vbn] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--mud-palette-divider);
    transition: all 0.2s ease;
}

    .pin-dot.active[b-vv309n4vbn] {
        background-color: var(--mud-palette-primary);
        border-color: var(--mud-palette-primary);
        transform: scale(1.1);
    }

.current-blink[b-vv309n4vbn] {
    border-color: var(--mud-palette-primary);
    animation: blink-b-vv309n4vbn 1s infinite;
}

/* --- Keyboard --- */
.numeric-keyboard[b-vv309n4vbn] {
    user-select: none;
}

[b-vv309n4vbn] .keyboard-btn {
    background-color: var(--mud-palette-background-gray);
    height: 60px;
    transition: all 0.1s ease;
}

    [b-vv309n4vbn] .keyboard-btn:active {
        background-color: var(--mud-palette-divider) !important;
        transform: scale(0.95);
    }

/* --- Animations --- */
@keyframes blink-b-vv309n4vbn {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.animate-shake[b-vv309n4vbn] {
    animation: shake-b-vv309n4vbn 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake-b-vv309n4vbn {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* --- Responsive for iPhone SE (max-height: 700px) --- */
@media (max-height: 700px) {
    .header-section[b-vv309n4vbn] {
        margin-bottom: 12px !important;
    }

    .logo-box[b-vv309n4vbn] {
        padding: 8px;
        margin-bottom: 4px !important;
    }

        .logo-box[b-vv309n4vbn]  .mud-icon-root {
            font-size: 1.5rem !important;
        }

    [b-vv309n4vbn] .mud-typography-h5 {
        font-size: 1.2rem !important;
    }

    .input-display-stack[b-vv309n4vbn] {
        margin-bottom: 16px !important;
        gap: 8px !important;
    }

    [b-vv309n4vbn] .keyboard-btn {
        height: 46px !important;
    }

    .keyboard-section[b-vv309n4vbn]  .mt-4 {
        margin-top: 8px !important;
    }
}

/* --- Alert Style --- */
[b-vv309n4vbn] .mud-alert {
    border-radius: 12px;
}

/* --- Phone Display Custom --- */
.phone-display-container[b-vv309n4vbn] {
    display: flex;
    align-items: center;
    background: var(--mud-palette-background-gray);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-divider);
    transition: all 0.2s ease;
    min-height: 56px;
}

    /* เมื่อ Focus ที่เบอร์โทร */
    [b-vv309n4vbn] .phone-display-container.field-active {
        border: 2px solid var(--mud-palette-primary) !important;
        background-color: rgba(var(--mud-palette-primary-rgb), 0.05);
    }

.phone-numbers-wrapper[b-vv309n4vbn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 8px;
}

/* 1. กำหนดสถานะปกติ (Static) */
.digit-box[b-vv309n4vbn] {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    /* ใช้สีเทาอ่อนเป็นฐาน */
    border-bottom: 2px solid var(--mud-palette-divider);
}

/* 2. เมื่อเป็นช่องที่กำลังพิมพ์ (Active/Blink) */
.current-blink-border[b-vv309n4vbn] {
    /* ใช้ border-bottom ปกติ ไม่ต้อง !important */
    border-bottom: 2px solid var(--mud-palette-primary);
    animation: blink-border-b-vv309n4vbn 1s step-end infinite;
}

/* 3. Keyframes สั่งเปลี่ยนแค่สี */
@keyframes blink-border-b-vv309n4vbn {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.digit-separator[b-vv309n4vbn] {
    font-weight: bold;
    color: var(--mud-palette-primary);
    margin: 0 2px;
}

/* ปรับ iPhone SE ให้เล็กลง */
@media (max-height: 700px) {
    .phone-display-container[b-vv309n4vbn] {
        padding: 6px 8px;
        min-height: 48px;
    }

    .digit-box[b-vv309n4vbn] {
        width: 18px;
        height: 28px;
        font-size: 1.1rem;
    }
}
