/* Màn đăng nhập. Dùng chung bảng màu với zalo-admin.css / zalo-chat.css. */

[x-cloak] {
    display: none !important;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: #f4f6f8;
    color: #17202a;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 30px 28px 22px;
    border: 1px solid #d9e0e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .1);
}

.auth-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #243447;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.auth-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

.auth-subtitle {
    margin: 4px 0 20px;
    font-size: 14px;
    color: #6b7785;
}

.auth-form .form-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-form .form-control {
    height: 44px;
    border-radius: 12px;
    border-color: #cfd8e3;
}

.auth-form .form-control:focus {
    border-color: #8bbcff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.auth-form .btn-primary {
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
}

.auth-note {
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7785;
}

.app-footer {
    box-sizing: border-box;
    width: min(1392px, calc(100% - 48px));
    margin: 18px auto 24px;
    padding: 11px 16px;
    border: 1px solid #d9e0e8;
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.app-footer-label,
.app-footer-year {
    font-weight: 650;
}

.app-footer-brand {
    color: #172033;
    font-weight: 850;
}

.auth-body .app-footer {
    width: min(380px, 100%);
    margin: 0;
    padding: 10px 14px;
}

@media (max-width: 767.98px) {
    .app-footer {
        width: calc(100% - 32px);
        margin-bottom: 16px;
    }
}

/* Thanh người dùng gắn ở góc các trang đã có (accounts / agents / users). */

.user-chip-wrap {
    position: relative;
    display: inline-flex;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 12px;
    border: 1px solid #d9e0e8;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.user-chip:hover,
.user-chip.active {
    border-color: #b9c6d6;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.user-chip-copy {
    text-align: left;
}

.user-chip-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.user-chip-role {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7785;
}

.user-chip-caret {
    font-size: 11px;
    color: #728197;
    transition: transform .15s ease;
}

.user-chip.active .user-chip-caret {
    transform: rotate(180deg);
}

.user-chip-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 190px;
    padding: 6px;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}

.user-chip-menu form {
    margin: 0;
}

.user-chip-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.user-chip-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.user-chip-menu-danger {
    color: #c2410c;
}

.user-chip-menu-danger:hover {
    background: #fff7ed;
    color: #9a3412;
}
