.login-box,
.register-box {
    max-width: 460px !important;
}

.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #f6fafd;
    font-family: Arial, sans-serif;
}

.device-block {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #bbb;
    border-radius: 10px;
    margin: 10px 0;
    min-width: 220px;
    max-width: 95vw;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 8px 12px;
}

.fiber {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.fiber-label {
    background: #1976d2;
    color: #fff;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: bold;
    margin: 0 0 3px 0;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 1px 4px #0001;
}

.fiber-label-mt {
    background: #df1b1b;
    color: #fff;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: bold;
    margin: 0 0 3px 0;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 1px 4px #0001;
}

.fiber-title {
    font-size: 11px;
    color: #888;
    font-weight: normal;
    margin-bottom: 1px;
}

.device-info {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.device-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.device-type {
    font-size: 10px;
    color: #666;
}

.cable {
    width: 4px;
    height: 30px;
    background: #2196f3;
    border-radius: 3px;
    margin: 0 auto;
    position: relative;
}

.cable-label {
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
    /* color: #2196f3;
      border: 1.5px solid #2196f3; */
    border-radius: 9px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: bold;
    transform: translate(-50%, -80%);
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 1px 2px #0001;
}

/* Mobile responsive */
@media (max-width: 500px) {
    .device-block {
        min-width: 90vw;
        max-width: 99vw;
        padding: 6px 2px;
    }

    .fiber {
        min-width: 36px;
    }

    .device-name {
        font-size: 13px;
    }

    .device-type {
        font-size: 10px;
    }
}

