/* =============================================
   LOCK CARD POPUP
   Dùng cho Video Card bị password bảo vệ
   Match CommonAlert style (85dvw mobile, 18dvw PC, z-index:10)
   ============================================= */
* {
    -webkit-tap-highlight-color: transparent;
}

.lock-screen {
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100dvw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-screen * {
    font-size: 13.5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    touch-action: pan-x pan-y;
}

.lock-screen-popup {
	font-family: 'Roboto', sans-serif;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    min-height: 20dvh;
    padding-left:10px;
    padding-right:10px;
    padding-top:20px;
}

/* Mobile */
@media only screen and (max-device-width: 1023px) {
    .lock-screen-popup {
        width: calc(100dvw - 80px);
    }
}

/* PC */
@media only screen and (min-device-width: 1023px) {
    .lock-screen-popup {
        width: calc(100dvw / 4);
    }
}

/* ---- HEADER (Top Info Table layout) ---- */
.lock-screen-header {
    display: flex;
    align-items: center;
    gap: 36px;
    width: calc(100% - 30px);
}

.lock-screen-avatar {
    flex-shrink: 0;
}

.lock-screen-avatar-round img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.lock-screen-avatar-rectangle img {
    height: 50px;
    width: auto;
    object-fit: cover;
}

.lock-screen-info {
    flex: 1;
    min-width: 0;
}

.lock-screen-name {
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.lock-screen-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.lock-screen-company {
	line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- DIVIDER ---- */
.lock-screen-divider {
    width: calc(100% - 30px);
    height: 1px;
    background: white;
    margin-top: 20px;
}

/* ---- BODY (Message + Password Input) ---- */
.lock-screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 21px;
    width: calc(100% - 30px);
}

.lock-screen-message {
    text-align: center;
    margin-bottom: 16px;
}

.lock-screen-input-wrapper {
    width: 100%;
    border: 1.5px solid #dddddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lock-screen-input-wrapper:focus-within {
    border-color: #30ccfc;
}

.lock-screen-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 8px;
    font-size: 13.5px;
    min-width: 0;
}

.lock-screen-toggle-password {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.lock-screen-toggle-password img {
    width: 20px;
    height: 20px;
    display: block;
}

.lock-screen-toggle-password.hidden {
    display: none;
}

.lock-screen-error {
	width: 100%;
    color: red;
    font-size: 10px;
    margin-top: 5px;
}

.lock-screen-error.hidden {
    display: none;
}

/* ---- FOOTER (Match CommonAlert exactly) ---- */
.lock-screen-footer {
    height: 6dvh;
    width: 100%;
    display: flex;
    border-top: 1px solid #D1D1D1;
    padding-left: 17px;
}

.lock-screen-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30ccfc;
    cursor: pointer;
}

.lock-screen-btn:active {
    opacity: 0.7;
}

.lock-screen-footer-line {
    width: 1px;
    height: 100%;
    background: #D1D1D1;
}

.lock-screen-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
