input.form-control {
    position: relative;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 40px;
    }

    .password-wrapper .toggle-password {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        cursor: pointer;
        user-select: none;
        font-size: 16px;
        color: rgb(136, 136, 136);
    }

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    border-color: var(--primary);
    background-color: var(--primary);
}

.label-color {
    color: rgb(19, 19, 64);
}

.font-w500 {
    font-weight: 500;
}

.login_bg_left {
    position: relative;
    background: rgb(77, 68, 180);
    height: 100vh;
    place-content: center;
}

.login_row::before {
    content: "";
    position: absolute;
    left: 0px;
    width: 50%;
    background: rgb(77, 68, 180);
    top: 0px;
    height: 100%;
}

.login-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    height: 100%;
    width: 100%;
}

img.login-lng-1 {
    width: 85%;
    margin: 0px auto;
    display: table;
    position: relative;
    z-index: 1;
}

.login-container {
    height: 100vh;
}

.login_row {
    align-items: center;
    position: relative;
    place-content: center;
}

.login-page-design {
    background: #eef1f7;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-shell-card {
    width: 1080px;
    max-width: 100%;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #e4e8f2;
    box-shadow: 0 20px 50px rgba(30, 41, 90, .12);
}

.login-left-panel {
    position: relative;
    background: linear-gradient(160deg, #4f7cff 0%, #5b57c7 48%, #6d4fd8 100%);
    color: #fff;
    padding: 34px 30px;
    overflow: hidden;
}

.login-left-ripple {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

    .login-left-ripple span {
        position: absolute;
        border-radius: 50%;
        background: rgb(255 255 255 / 20%);
        top: 55%;
        left: 50%;
        width: 140px;
        height: 140px;
        margin: -70px 0 0 -70px;
        opacity: 0;
        animation: loginLeftRipple 6s ease-out infinite;
    }

        .login-left-ripple span:nth-child(1) {
            animation-delay: 0s;
        }

        .login-left-ripple span:nth-child(2) {
            animation-delay: 1.2s;
        }

        .login-left-ripple span:nth-child(3) {
            animation-delay: 2.4s;
        }

        .login-left-ripple span:nth-child(4) {
            animation-delay: 3.6s;
        }

        .login-left-ripple span:nth-child(5) {
            animation-delay: 4.8s;
        }

@keyframes loginLeftRipple {
    0% {
        transform: scale(.6);
        opacity: 0;
    }

    15% {
        opacity: .45;
    }

    100% {
        transform: scale(4.8);
        opacity: 0;
    }
}

.login-left-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left-badge {
    align-self: center;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.login-left-content h2 {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.login-left-content p {
    margin: 0 0 15px;
    font-size: 12px;
    /* line-height: 1.55; */
    color: rgba(255, 255, 255, .9);
    text-align: center;
}

.login-left-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    /* height: 190px; */
    margin-bottom: 18px;
    background: rgba(255, 255, 255, .12);
    object-fit: cover;
}

    .login-left-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.login-left-features {
    /* margin-top: auto; */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #fff;
    border-radius: 16px;
    padding: 12px 10px;
}

.login-feat {
    text-align: center;
    color: #334155;
}

    .login-feat i {
        display: inline-flex;
        width: 30px;
        height: 30px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        background: #eef3ff;
        color: #4f7cff;
        margin-bottom: 6px;
        font-size: 14px;
        /* background: #eef3ff; */
        /* color: #4263eb; */
        /* font-size: 17px; */
        border: 1px solid #D9DEF4;
    }

    .login-feat span {
        display: block;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
        color: #475569;
    }

.login-right-panel {
    padding: 28px 30px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand-wrap {
    text-align: center;
    margin-bottom: 10px;
}

.login-brand-logo {
    width: 100px;
    max-width: 100%;
    height: auto;
}

.login-page-design .logo-name-login {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0f2744;
    text-align: left;
    font-weight: 700;
    line-height: 1.25;
}

    .login-page-design .logo-name-login b {
        color: #3558d4;
        font-weight: 800;
    }

.login-welcome {
    color: #4f7cff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-page-design .branch-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef3ff;
    border: 1px solid #d7e2ff;
    border-radius: 999px;
    padding: 6px 10px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

    .login-page-design .branch-name i {
        color: #4f7cff;
    }

    .login-page-design .branch-name span,
    .login-page-design .branch-name b {
        color: #3558d4;
        font-weight: 700;
        margin-left: 4px;
    }

.login-page-design .branch-input-wrap .form-control {
    background: #f4f7ff;
    border-color: #d9e4ff;
}

.login-page-design .branch-input-icon {
    background: #e8eeff;
    color: #4f7cff;
}

.login-page-design .password-wrapper.branch-input-wrap .form-control {
    padding-right: 44px;
}

.login-page-design .password-wrapper .toggle-password,
.login-page-design span.toggle-password {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 3;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

    .login-remember input {
        width: 16px;
        height: 16px;
        accent-color: #4f7cff;
    }

.login-page-design .branch-proceed-btn {
    /* border-radius: 999px; */
    /* background: #3f67e8; */
    /* border-color: #3f67e8; */
    /* height: 48px; */
}

    .login-page-design .branch-proceed-btn:hover,
    .login-page-design .branch-proceed-btn:focus {
        background: #3558d4;
        border-color: #3558d4;
    }

.login-page-design .branch-proceed-arrow {
    color: #3f67e8;
}

.login-page-design .new-account.login-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    text-align: center;
}

.login-footer-links a {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.login-footer-links .text-primary {
    color: #3f67e8 !important;
}

.login-footer-links .text-danger {
    color: #f59e0b !important;
}

.login-or {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.login-remember-card {
    border-radius: 12px;
    border: 1px solid #d7dbff;
    background: #f5f6ff;
    color: #1f2937;
}

.quick-login-bar {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #d9e2f5;
    border-radius: 14px;
    background: #f8faff;
}

.quick-login-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.quick-login-user {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.quick-login-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e8eeff;
    color: #3f67e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.quick-login-meta {
    min-width: 0;
}

    .quick-login-meta small {
        display: block;
        font-size: 10px;
        color: #94a3b8;
        font-weight: 600;
        line-height: 1.2;
    }

    .quick-login-meta strong {
        display: block;
        font-size: 13px;
        color: #0f2744;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

.quick-login-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.quick-btn-remove,
.quick-btn-continue {
    border-radius: 8px;
    font-weight: 600;
    /* padding: 5px 10px; */
    font-size: 11px;
}

.quick-login-select-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-left: 1px solid #d9e2f5;
    padding-left: 12px;
}

    .quick-login-select-wrap label {
        margin: 0;
        font-size: 10px;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

.quick-login-select {
    border-radius: 5px;
    border: 1px solid #d9e4ff;
    background: #fff;
    color: #0f2744;
    font-size: 12px;
    font-weight: 600;
    padding: 5px;
}

@media (max-width: 991px) {
    .quick-login-bar {
        grid-template-columns: 1fr;
    }

    .quick-login-select-wrap {
        border-left: 0;
        border-top: 1px solid #d9e2f5;
        padding-left: 0;
        padding-top: 10px;
    }

    .quick-login-meta strong {
        max-width: 140px;
    }
}

.login-page-design .back-too-login {
    border: 1px solid #d9dde8;
    background: #f5f6fa;
    color: #374151;
    border-radius: 10px;
    font-weight: 700;
    padding: 8px 14px;
}

    .login-page-design .back-too-login:hover {
        background: #eef0ff;
        border-color: #d7dbff;
        color: #5b57c7;
    }

.authincation-content.style-2 {
    padding: 0;
}

span.toggle-password {
    position: absolute;
    right: 15px;
    top: 6px;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 991px) {
    .login-shell-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 10px;    
    }

    .login-left-panel {
     display:none;
        padding: 24px 20px 18px;
    }

    .login-left-content h2 {
        font-size: 24px;
    }

    .login-left-image {
        height: 170px;
    }

    .login-left-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-right-panel {
        padding: 22px 18px 24px;
    }
}

.tab-content-alert .alert.alert-primary {
    background: rgb(245, 244, 255);
    border-color: rgb(233, 232, 245);
}

.loign-user-name {
    font-size: 20px;
    color: rgb(77, 68, 181);
}

.footer-alert-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.logo-product img {
    width: 180px;
}

.branch-name {
    background: rgb(232, 240, 254);
    border-radius: 7px;
    padding: 5px 15px;
    border: 1px solid rgb(221, 221, 221);
    margin-bottom: 0px;
}

    .branch-name b {
        color: rgb(14, 18, 26);
        margin-left: 5px;
    }

.logo-name-login {
    font-size: 34px;
    margin-bottom: 15px;
    color: rgb(14, 18, 26);
}

.body.branch-code-page {
    background: rgb(91, 87, 199);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.authincation-branch {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; 
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.branch-dot-grid {
    position: absolute;
    width: 70px;
    height: 100px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.4px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.branch-dot-tl {
    top: 28px;
    left: 28px;
}

.branch-dot-br {
    right: 28px;
    bottom: 28px;
}

.sing_up_brantch {
    width: 100%;
    max-width: 430px;
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 1;
    position: relative;
    box-shadow: rgba(28, 25, 80, 0.22) 0px 18px 40px;
    box-sizing: border-box;
}

.branch-card-top {
    text-align: center;
}

.branch-code-page img.erp-logo {
    width: 100px;
    margin: 0px auto 8px;
    display: block;
}

.branch-code-page .logo-name-login.branch-txt {
    font-size: 18px;
    font-weight: 700;
    color: rgb(31, 41, 55);
    text-align: center;
    margin-bottom: 10px;
}

    .branch-code-page .logo-name-login.branch-txt b {
        color: rgb(91, 87, 199);
        font-weight: 800;
    }

.branch-hero {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgb(232, 234, 245);
    height: 150px;
    background: rgb(238, 240, 255);
}

    .branch-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.branch-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0px 0px 10px;
}

    .branch-section-title::before, .branch-section-title::after {
        content: "";
        flex: 1 1 0%;
        height: 1px;
        background: rgb(91 87 199 / 46%);
    }

    .branch-section-title span {
        flex-shrink: 1;
        font-size: 13px;
        font-weight: 700;
        color: rgb(63, 61, 139);
        white-space: normal;
        text-align: center;
        line-height: 1.35;
        max-width: 100%;
    }

.branch-visual {
    display: none;
}

.branch-visual-inner {
    display: none;
}

.branch-divider {
    display: none;
}

.branch-field .form-label {
    font-size: 12px;
    font-weight: 700;
    color: rgb(107, 114, 128);
}

.branch-input-wrap {
    position: relative;
}

    .branch-input-wrap .branch-input-icon {
        position: absolute;
        left: 2px;
        top: 2px;
        /* transform: translateY(-50%); */
        width: 42px;
        height: 93%;
        border-radius: 9px;
        border-right: 1px solid #D9DEF4;
        background: #fff;
        color: rgb(91, 87, 199);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        z-index: 2;
        pointer-events: none;
    }

    .branch-input-wrap .form-control {
        height: 48px;
        border-radius: 12px;
        border: 1px solid rgb(217, 221, 232);
        padding-left: 50px;
        font-size: 16px;
        background: rgb(255, 255, 255);
        color: rgb(17, 24, 39);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

        .branch-input-wrap .form-control:focus {
            border-color: rgb(91, 87, 199);
            outline: 0px;
            box-shadow: none;
        }

.branch-proceed-btn {
    height: 48px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgb(91, 87, 199);
    background: rgb(91, 87, 199);
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0px 48px;
    box-sizing: border-box;
}

    .branch-proceed-btn:hover, .branch-proceed-btn:focus {
        background: rgb(77, 73, 181);
        border-color: rgb(77, 73, 181);
        color: rgb(255, 255, 255);
    }

.branch-proceed-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    color: rgb(91, 87, 199);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.branch-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0px;
    position: relative;
}

    .branch-or::before {
        content: "";
        position: absolute;
        left: 0px;
        right: 0px;
        top: 50%;
        height: 1px;
        background: rgb(229, 231, 239);
    }

    .branch-or span {
        position: relative;
        z-index: 1;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid rgb(229, 231, 239);
        background: rgb(255, 255, 255);
        color: rgb(156, 163, 175);
        font-size: 10px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.branch-help-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgb(232, 235, 243);
    background: rgb(245, 246, 250);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}

    .branch-help-box:hover {
        background: rgb(238, 240, 255);
        border-color: rgb(215, 219, 255);
        text-decoration: none;
        color: inherit;
    }

.branch-help-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgb(235, 233, 255);
    color: rgb(91, 87, 199);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.branch-help-text {
    flex: 1 1 0%;
    min-width: 0px;
}

    .branch-help-text strong {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: rgb(31, 41, 55);
        line-height: 1.3;
    }

    .branch-help-text small {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        font-weight: 500;
        color: rgb(139, 147, 167);
        line-height: 1.35;
    }

.branch-help-chevron {
    color: rgb(156, 163, 175);
    font-size: 12px;
    flex-shrink: 0;
}

.branch-error-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #f1aeb5;
    border-left: 4px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
    box-shadow: none;
    margin-bottom: 0;
}

.branch-error-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.branch-error-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #721c24;
}

    .branch-error-text strong {
        font-weight: 800;
        margin-right: 4px;
    }

.branch-error-close {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #842029;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.75;
}

    .branch-error-close:hover {
        background: rgba(220, 53, 69, 0.12);
        color: #842029;
        opacity: 1;
    }

.branch-ripple {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.branch-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    animation: 8s ease-in-out 0s infinite normal none running branchGlowPulse;
    border: 0px !important;
    box-shadow: none !important;
}

@keyframes branchGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.94);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.06);
    }
}

.branch-ring:nth-child(1) {
}

.branch-ring:nth-child(2) {
    width: 500px;
    height: 500px;
}

.branch-ring:nth-child(3) {
    width: 600px;
    height: 600px;
}

.branch-ring:nth-child(4) {
    width: 700px;
    height: 700px;
}

.branch-ring:nth-child(5) {
    width: 800px;
    height: 800px;
}

@keyframes branchRipple {
    0% {
        transform: scale(0.55);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0.45);
    }

    12% {
        opacity: 0.55;
    }

    70% {
        opacity: 0.18;
    }

    100% {
        transform: scale(5.2);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .branch-ring {
        animation: auto ease 0s 1 normal none running none;
        opacity: 0.18;
    }

        .branch-ring:nth-child(1) {
            transform: scale(1.1);
        }

        .branch-ring:nth-child(2) {
            transform: scale(1.8);
        }

        .branch-ring:nth-child(3) {
            transform: scale(2.6);
        }

        .branch-ring:nth-child(4) {
            transform: scale(3.4);
        }

        .branch-ring:nth-child(5) {
            transform: scale(4.2);
        }
}

img.erp-logo {
    width: 150px;
    margin-bottom: 15px;
}

/* ===== Branch: Tablet ===== */
 

/* ===== Branch: Tablet portrait / small tab ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .authincation-branch {
        align-items: center;
        justify-content: center;
        padding: 32px 24px;
    }

    .sing_up_brantch {
        max-width: 480px;
        padding: 28px 26px;
        border-radius: 18px;
    }

    .branch-code-page img.erp-logo {
        width: 96px;
    }

    .branch-code-page .logo-name-login.branch-txt {
        font-size: 18px;
    }

    .branch-hero {
        height: 160px;
        border-radius: 14px;
    }

    .branch-section-title span {
        font-size: 14px;
    }

    .branch-input-wrap .form-control,
    .branch-proceed-btn {
        height: 50px;
    }

    .branch-help-box {
        padding: 12px;
    }

    .branch-help-text strong {
        font-size: 13px;
    }

    .branch-help-text small {
        font-size: 12px;
    }
}

/* ===== Branch: Phone ===== */
@media (max-width: 767px) {
    .branch-dot-grid {
        width: 48px;
        height: 70px;
        opacity: 0.28;
        background-size: 10px 10px;
    }

    .branch-dot-tl {
        top: 10px;
        left: 10px;
    }

    .branch-dot-br {
        right: 10px;
        bottom: 10px;
    }

    .body.branch-code-page {
        margin: 0;
        overflow-x: hidden;
        width: 100%;
    }

    

    .sing_up_brantch {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 20px 16px;
        border-radius: 16px;
        box-shadow: rgba(28, 25, 80, 0.18) 0px 12px 28px;
    }

    .branch-code-page img.erp-logo {
        width: 80px !important;
        max-width: 80px;
        height: auto;
        margin: 0 auto 6px;
    }

    .branch-code-page .logo-name-login.branch-txt {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.4;
        padding: 0 2px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .branch-hero {
        height: clamp(100px, 28vw, 130px);
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .branch-section-title {
        gap: 8px;
        margin-bottom: 14px;
    }

    .branch-section-title span {
        font-size: 12px;
        line-height: 1.4;
    }

    .branch-field {
        margin-bottom: 14px !important;
    }

    .branch-field .form-label {
        font-size: 12px;
        margin-bottom: 6px !important;
    }

    .branch-input-wrap .branch-input-icon {
        width: 42px;
        font-size: 12px;
    }

    .branch-input-wrap .form-control {
        height: 48px;
        font-size: 16px;
        padding-left: 50px;
        border-radius: 12px;
    }

    .branch-proceed-btn {
        height: 48px;
        font-size: 15px;
        border-radius: 12px;
        padding: 0 48px;
        width: 100%;
    }

    .branch-proceed-arrow {
        width: 30px;
        height: 30px;
        right: 8px;
        font-size: 11px;
    }

    .branch-or {
        margin: 12px 0;
    }

    .branch-help-box {
        gap: 10px;
        padding: 12px 10px;
        border-radius: 12px;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .branch-help-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .branch-help-text strong {
        font-size: 12px;
    }

    .branch-help-text small {
        font-size: 11px;
    }

    .branch-error-alert {
        gap: 8px;
        padding: 10px;
        align-items: flex-start;
        margin-top: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .branch-error-text {
        font-size: 12px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .branch-ring:nth-child(2) { width: 240px; height: 240px; }
    .branch-ring:nth-child(3) { width: 300px; height: 300px; }
    .branch-ring:nth-child(4) { width: 360px; height: 360px; }
    .branch-ring:nth-child(5) { width: 420px; height: 420px; }

    .login-page-design {
        background: #eef1f7;
        padding: 0;
    }

    .login_bg_left {
        height: auto;
    }

    .authincation-content.style-2 {
        background: rgb(255, 255, 255);
        border-radius: 30px;
        padding: 30px;
        margin-bottom: 30px;
    }

    .logo-product img {
        width: 150px;
    }

    .logo-name-login {
        font-size: 24px;
    }
}

/* ===== Branch: Small phones ===== */
@media (max-width: 480px) {
 
    .sing_up_brantch {
        max-width: 100%;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .branch-code-page img.erp-logo {
        width: 72px !important;
        max-width: 72px;
    }

    .branch-code-page .logo-name-login.branch-txt {
        font-size: 15px;
    }

    .branch-hero {
        height: 105px;
        border-radius: 10px;
    }

    .branch-section-title span {
        font-size: 11.5px;
    }

    .branch-help-chevron {
        display: none;
    }
}

@media (max-width: 360px) {
    .sing_up_brantch {
        padding: 14px 12px;
    }

    .branch-hero {
        height: 90px;
    }

    .branch-code-page .logo-name-login.branch-txt {
        font-size: 14px;
    }

    .branch-section-title::before,
    .branch-section-title::after {
        min-width: 10px;
        flex: 0.4 1 0%;
    }
}

/* Short phone screens — keep card usable without crushing */
@media (max-height: 720px) and (max-width: 767px) {
    .authincation-branch {
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top, 0px));
    }

    .branch-hero {
        height: 88px;
    }

    .branch-code-page img.erp-logo {
        width: 64px !important;
        max-width: 64px;
        margin-bottom: 4px;
    }

    .branch-code-page .logo-name-login.branch-txt {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .branch-section-title {
        margin-bottom: 10px;
    }

    .branch-or {
        margin: 8px 0;
    }
}

@media (orientation: landscape) and (max-height: 520px) {
    .authincation-branch {
        align-items: flex-start;
        padding: 12px 16px;
        overflow-y: auto;
    }

    .sing_up_brantch {
        max-width: 440px;
        margin: 0 auto;
    }

    .branch-hero {
        height: 70px;
    }

    .branch-ripple {
        opacity: 0.4;
    }

    .branch-dot-grid {
        display: none;
    }
}
